Interface QuantitySequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
BillingSuppliesAndDevicesSequence.Item,QuantitySequence.SimpleHolder
- Enclosing class:
- QuantitySequence
A class implementing this interface can hold attributes which contain the DICOM tag "Quantity Sequence" (see
QuantitySequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault QuantitySequenceAdds a new Quantity Sequence (seeQuantitySequence) with initial capacity 1 (seeensureQuantitySequence(int)) if it does not already exist.default QuantitySequenceensureQuantitySequence(int initialCapacity) Adds a new Quantity Sequence (seeQuantitySequence) if it does not already exist.default QuantitySequencedefault QuantitySequencenewQuantitySequence(int initialCapacity) Adds a new Quantity Sequence.default voidRemoves the Quantity Sequence (seeQuantitySequencestatic QuantitySequence.Holderwrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
- Parameters:
attributes- An attributes object containing the Quantity Sequence (seeQuantitySequence)- Returns:
- A wrapper object implementing the
QuantitySequence.Holderinterface.
-
builder
- Returns:
- a
QuantitySequence.Holder.Builderto create Quantity Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theQuantitySequence.Holder.Builder.- Returns:
- a
QuantitySequence.Holder.Builderto create Quantity Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getQuantitySequence
- Returns:
- the Quantity Sequence (see
QuantitySequence)
-
newQuantitySequence
Adds a new Quantity Sequence. (seeQuantitySequence)- Parameters:
initialCapacity- the initial capacity for the new Quantity Sequence
-
ensureQuantitySequence
Adds a new Quantity Sequence (seeQuantitySequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Quantity Sequence is created.- Returns:
- Either the already existing Quantity Sequence (see
QuantitySequence) or a new one with capacityinitialCapacity.
-
ensureQuantitySequence
Adds a new Quantity Sequence (seeQuantitySequence) with initial capacity 1 (seeensureQuantitySequence(int)) if it does not already exist.- Returns:
- Either the already existing Quantity Sequence (see
QuantitySequence) or a new one with capacity 1.
-
containsQuantitySequence
default boolean containsQuantitySequence()- Returns:
- Whether it contains the Quantity Sequence (see
QuantitySequence)
-
removeQuantitySequence
default void removeQuantitySequence()Removes the Quantity Sequence (seeQuantitySequence
-