Interface CollimatorShapeSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- Enclosing class:
- CollimatorShapeSequence
public static interface CollimatorShapeSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Collimator Shape Sequence" (seeCollimatorShapeSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCollimatorShapeSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static CollimatorShapeSequence.Holder.Builderbuilder()static CollimatorShapeSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsCollimatorShapeSequence()default CollimatorShapeSequenceensureCollimatorShapeSequence()Adds a new Collimator Shape Sequence (seeCollimatorShapeSequence) with initial capacity 1 (seeensureCollimatorShapeSequence(int)) if it does not already exist.default CollimatorShapeSequenceensureCollimatorShapeSequence(int initialCapacity)Adds a new Collimator Shape Sequence (seeCollimatorShapeSequence) if it does not already exist.default CollimatorShapeSequencegetCollimatorShapeSequence()default CollimatorShapeSequencenewCollimatorShapeSequence(int initialCapacity)Adds a new Collimator Shape Sequence.default voidremoveCollimatorShapeSequence()Removes the Collimator Shape Sequence (seeCollimatorShapeSequencestatic CollimatorShapeSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static CollimatorShapeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Collimator Shape Sequence (seeCollimatorShapeSequence)- Returns:
- a wrapper object implementing the
CollimatorShapeSequence.Holderinterface.
-
builder
static CollimatorShapeSequence.Holder.Builder builder()
- Returns:
- a
CollimatorShapeSequence.Holder.Builderto create Collimator Shape Sequence Items with a fluent API.
-
builder
static CollimatorShapeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theCollimatorShapeSequence.Holder.Builder.- Returns:
- a
CollimatorShapeSequence.Holder.Builderto create Collimator Shape Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getCollimatorShapeSequence
default CollimatorShapeSequence getCollimatorShapeSequence()
- Returns:
- the Collimator Shape Sequence (see
CollimatorShapeSequence)
-
newCollimatorShapeSequence
default CollimatorShapeSequence newCollimatorShapeSequence(int initialCapacity)
Adds a new Collimator Shape Sequence. (seeCollimatorShapeSequence)- Parameters:
initialCapacity- the initial capacity for the new Collimator Shape Sequence- Returns:
- the newly created CollimatorShapeSequence.
-
ensureCollimatorShapeSequence
default CollimatorShapeSequence ensureCollimatorShapeSequence(int initialCapacity)
Adds a new Collimator Shape Sequence (seeCollimatorShapeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Collimator Shape Sequence is created.- Returns:
- either the already existing Collimator Shape Sequence (see
CollimatorShapeSequence) or a new one with capacityinitialCapacity.
-
ensureCollimatorShapeSequence
default CollimatorShapeSequence ensureCollimatorShapeSequence()
Adds a new Collimator Shape Sequence (seeCollimatorShapeSequence) with initial capacity 1 (seeensureCollimatorShapeSequence(int)) if it does not already exist.- Returns:
- either the already existing Collimator Shape Sequence (see
CollimatorShapeSequence) or a new one with capacity 1.
-
containsCollimatorShapeSequence
default boolean containsCollimatorShapeSequence()
- Returns:
- whether it contains the Collimator Shape Sequence (see
CollimatorShapeSequence)
-
removeCollimatorShapeSequence
default void removeCollimatorShapeSequence()
Removes the Collimator Shape Sequence (seeCollimatorShapeSequence
-
-