Interface ImageDataTypeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- Enclosing class:
- ImageDataTypeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Image Data Type Sequence" (see
ImageDataTypeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ImageDataTypeSequenceAdds a new Image Data Type Sequence (seeImageDataTypeSequence) with initial capacity 1 (seeensureImageDataTypeSequence(int)) if it does not already exist.default ImageDataTypeSequenceensureImageDataTypeSequence(int initialCapacity) Adds a new Image Data Type Sequence (seeImageDataTypeSequence) if it does not already exist.default ImageDataTypeSequencedefault ImageDataTypeSequencenewImageDataTypeSequence(int initialCapacity) Adds a new Image Data Type Sequence.default voidRemoves the Image Data Type Sequence (seeImageDataTypeSequencestatic ImageDataTypeSequence.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 Image Data Type Sequence (seeImageDataTypeSequence)- Returns:
- A wrapper object implementing the
ImageDataTypeSequence.Holderinterface.
-
builder
- Returns:
- a
ImageDataTypeSequence.Holder.Builderto create Image Data Type Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theImageDataTypeSequence.Holder.Builder.- Returns:
- a
ImageDataTypeSequence.Holder.Builderto create Image Data Type Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getImageDataTypeSequence
- Returns:
- the Image Data Type Sequence (see
ImageDataTypeSequence)
-
newImageDataTypeSequence
Adds a new Image Data Type Sequence. (seeImageDataTypeSequence)- Parameters:
initialCapacity- the initial capacity for the new Image Data Type Sequence
-
ensureImageDataTypeSequence
Adds a new Image Data Type Sequence (seeImageDataTypeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Image Data Type Sequence is created.- Returns:
- Either the already existing Image Data Type Sequence (see
ImageDataTypeSequence) or a new one with capacityinitialCapacity.
-
ensureImageDataTypeSequence
Adds a new Image Data Type Sequence (seeImageDataTypeSequence) with initial capacity 1 (seeensureImageDataTypeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Image Data Type Sequence (see
ImageDataTypeSequence) or a new one with capacity 1.
-
containsImageDataTypeSequence
default boolean containsImageDataTypeSequence()- Returns:
- Whether it contains the Image Data Type Sequence (see
ImageDataTypeSequence)
-
removeImageDataTypeSequence
default void removeImageDataTypeSequence()Removes the Image Data Type Sequence (seeImageDataTypeSequence
-