Interface QuantitySequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
BillingSuppliesAndDevicesSequence.Item,QuantitySequence.SimpleHolder
- Enclosing class:
- QuantitySequence
public static interface QuantitySequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Quantity Sequence" (seeQuantitySequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classQuantitySequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static QuantitySequence.Holder.Builderbuilder()static QuantitySequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsQuantitySequence()default QuantitySequenceensureQuantitySequence()Adds 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 QuantitySequencegetQuantitySequence()default QuantitySequencenewQuantitySequence(int initialCapacity)Adds a new Quantity Sequence.default voidremoveQuantitySequence()Removes the Quantity Sequence (seeQuantitySequencestatic QuantitySequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static QuantitySequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Quantity Sequence (seeQuantitySequence)- Returns:
- a wrapper object implementing the
QuantitySequence.Holderinterface.
-
builder
static QuantitySequence.Holder.Builder builder()
- Returns:
- a
QuantitySequence.Holder.Builderto create Quantity Sequence Items with a fluent API.
-
builder
static QuantitySequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default QuantitySequence getQuantitySequence()
- Returns:
- the Quantity Sequence (see
QuantitySequence)
-
newQuantitySequence
default QuantitySequence newQuantitySequence(int initialCapacity)
Adds a new Quantity Sequence. (seeQuantitySequence)- Parameters:
initialCapacity- the initial capacity for the new Quantity Sequence- Returns:
- the newly created QuantitySequence.
-
ensureQuantitySequence
default QuantitySequence ensureQuantitySequence(int initialCapacity)
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
default QuantitySequence 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
-
-