Interface AddOtherSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
SubjectiveRefractionLeftEyeSequence.Item,SubjectiveRefractionRightEyeSequence.Item
- Enclosing class:
- AddOtherSequence
public static interface AddOtherSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Add Other Sequence" (seeAddOtherSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAddOtherSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static AddOtherSequence.Holder.Builderbuilder()static AddOtherSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsAddOtherSequence()default AddOtherSequenceensureAddOtherSequence()Adds a new Add Other Sequence (seeAddOtherSequence) with initial capacity 1 (seeensureAddOtherSequence(int)) if it does not already exist.default AddOtherSequenceensureAddOtherSequence(int initialCapacity)Adds a new Add Other Sequence (seeAddOtherSequence) if it does not already exist.default AddOtherSequencegetAddOtherSequence()default AddOtherSequencenewAddOtherSequence(int initialCapacity)Adds a new Add Other Sequence.default voidremoveAddOtherSequence()Removes the Add Other Sequence (seeAddOtherSequencestatic AddOtherSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static AddOtherSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Add Other Sequence (seeAddOtherSequence)- Returns:
- a wrapper object implementing the
AddOtherSequence.Holderinterface.
-
builder
static AddOtherSequence.Holder.Builder builder()
- Returns:
- a
AddOtherSequence.Holder.Builderto create Add Other Sequence Items with a fluent API.
-
builder
static AddOtherSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theAddOtherSequence.Holder.Builder.- Returns:
- a
AddOtherSequence.Holder.Builderto create Add Other Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getAddOtherSequence
default AddOtherSequence getAddOtherSequence()
- Returns:
- the Add Other Sequence (see
AddOtherSequence)
-
newAddOtherSequence
default AddOtherSequence newAddOtherSequence(int initialCapacity)
Adds a new Add Other Sequence. (seeAddOtherSequence)- Parameters:
initialCapacity- the initial capacity for the new Add Other Sequence- Returns:
- the newly created AddOtherSequence.
-
ensureAddOtherSequence
default AddOtherSequence ensureAddOtherSequence(int initialCapacity)
Adds a new Add Other Sequence (seeAddOtherSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Add Other Sequence is created.- Returns:
- either the already existing Add Other Sequence (see
AddOtherSequence) or a new one with capacityinitialCapacity.
-
ensureAddOtherSequence
default AddOtherSequence ensureAddOtherSequence()
Adds a new Add Other Sequence (seeAddOtherSequence) with initial capacity 1 (seeensureAddOtherSequence(int)) if it does not already exist.- Returns:
- either the already existing Add Other Sequence (see
AddOtherSequence) or a new one with capacity 1.
-
containsAddOtherSequence
default boolean containsAddOtherSequence()
- Returns:
- whether it contains the Add Other Sequence (see
AddOtherSequence)
-
removeAddOtherSequence
default void removeAddOtherSequence()
Removes the Add Other Sequence (seeAddOtherSequence
-
-