Interface QuantitySequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
BillingSuppliesAndDevicesSequence.Item
- Enclosing class:
- QuantitySequence
A class implementing this interface can hold attributes which contain the DICOM tag "Quantity Sequence" (see
QuantitySequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
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
-