Interface CompensatorShapeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
CompensatorDefinitionSequence.Item,CompensatorShapeSequence.SimpleHolder
- Enclosing class:
- CompensatorShapeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Compensator Shape Sequence" (see
CompensatorShapeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault CompensatorShapeSequenceAdds a new Compensator Shape Sequence (seeCompensatorShapeSequence) with initial capacity 1 (seeensureCompensatorShapeSequence(int)) if it does not already exist.default CompensatorShapeSequenceensureCompensatorShapeSequence(int initialCapacity) Adds a new Compensator Shape Sequence (seeCompensatorShapeSequence) if it does not already exist.default CompensatorShapeSequencedefault CompensatorShapeSequencenewCompensatorShapeSequence(int initialCapacity) Adds a new Compensator Shape Sequence.default voidRemoves the Compensator Shape Sequence (seeCompensatorShapeSequencewrap(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 Compensator Shape Sequence (seeCompensatorShapeSequence)- Returns:
- A wrapper object implementing the
CompensatorShapeSequence.Holderinterface.
-
builder
- Returns:
- a
CompensatorShapeSequence.Holder.Builderto create Compensator Shape Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theCompensatorShapeSequence.Holder.Builder.- Returns:
- a
CompensatorShapeSequence.Holder.Builderto create Compensator Shape Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getCompensatorShapeSequence
- Returns:
- the Compensator Shape Sequence (see
CompensatorShapeSequence)
-
newCompensatorShapeSequence
Adds a new Compensator Shape Sequence. (seeCompensatorShapeSequence)- Parameters:
initialCapacity- the initial capacity for the new Compensator Shape Sequence
-
ensureCompensatorShapeSequence
Adds a new Compensator Shape Sequence (seeCompensatorShapeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Compensator Shape Sequence is created.- Returns:
- Either the already existing Compensator Shape Sequence (see
CompensatorShapeSequence) or a new one with capacityinitialCapacity.
-
ensureCompensatorShapeSequence
Adds a new Compensator Shape Sequence (seeCompensatorShapeSequence) with initial capacity 1 (seeensureCompensatorShapeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Compensator Shape Sequence (see
CompensatorShapeSequence) or a new one with capacity 1.
-
containsCompensatorShapeSequence
default boolean containsCompensatorShapeSequence()- Returns:
- Whether it contains the Compensator Shape Sequence (see
CompensatorShapeSequence)
-
removeCompensatorShapeSequence
default void removeCompensatorShapeSequence()Removes the Compensator Shape Sequence (seeCompensatorShapeSequence
-