Interface TwoDDegreeOfFreedomSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
MatingFeatureDegreeOfFreedomSequence.Item,TwoDDegreeOfFreedomSequence.SimpleHolder
- Enclosing class:
- TwoDDegreeOfFreedomSequence
A class implementing this interface can hold attributes which contain the DICOM tag "2D Degree of Freedom Sequence" (see
TwoDDegreeOfFreedomSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault TwoDDegreeOfFreedomSequenceAdds a new 2D Degree of Freedom Sequence (seeTwoDDegreeOfFreedomSequence) with initial capacity 1 (seeensureTwoDDegreeOfFreedomSequence(int)) if it does not already exist.default TwoDDegreeOfFreedomSequenceensureTwoDDegreeOfFreedomSequence(int initialCapacity) Adds a new 2D Degree of Freedom Sequence (seeTwoDDegreeOfFreedomSequence) if it does not already exist.default TwoDDegreeOfFreedomSequencedefault TwoDDegreeOfFreedomSequencenewTwoDDegreeOfFreedomSequence(int initialCapacity) Adds a new 2D Degree of Freedom Sequence.default voidRemoves the 2D Degree of Freedom Sequence (seeTwoDDegreeOfFreedomSequencewrap(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 2D Degree of Freedom Sequence (seeTwoDDegreeOfFreedomSequence)- Returns:
- A wrapper object implementing the
TwoDDegreeOfFreedomSequence.Holderinterface.
-
builder
- Returns:
- a
TwoDDegreeOfFreedomSequence.Holder.Builderto create 2D Degree of Freedom Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theTwoDDegreeOfFreedomSequence.Holder.Builder.- Returns:
- a
TwoDDegreeOfFreedomSequence.Holder.Builderto create 2D Degree of Freedom Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getTwoDDegreeOfFreedomSequence
- Returns:
- the 2D Degree of Freedom Sequence (see
TwoDDegreeOfFreedomSequence)
-
newTwoDDegreeOfFreedomSequence
Adds a new 2D Degree of Freedom Sequence. (seeTwoDDegreeOfFreedomSequence)- Parameters:
initialCapacity- the initial capacity for the new 2D Degree of Freedom Sequence
-
ensureTwoDDegreeOfFreedomSequence
Adds a new 2D Degree of Freedom Sequence (seeTwoDDegreeOfFreedomSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new 2D Degree of Freedom Sequence is created.- Returns:
- Either the already existing 2D Degree of Freedom Sequence (see
TwoDDegreeOfFreedomSequence) or a new one with capacityinitialCapacity.
-
ensureTwoDDegreeOfFreedomSequence
Adds a new 2D Degree of Freedom Sequence (seeTwoDDegreeOfFreedomSequence) with initial capacity 1 (seeensureTwoDDegreeOfFreedomSequence(int)) if it does not already exist.- Returns:
- Either the already existing 2D Degree of Freedom Sequence (see
TwoDDegreeOfFreedomSequence) or a new one with capacity 1.
-
containsTwoDDegreeOfFreedomSequence
default boolean containsTwoDDegreeOfFreedomSequence()- Returns:
- Whether it contains the 2D Degree of Freedom Sequence (see
TwoDDegreeOfFreedomSequence)
-
removeTwoDDegreeOfFreedomSequence
default void removeTwoDDegreeOfFreedomSequence()Removes the 2D Degree of Freedom Sequence (seeTwoDDegreeOfFreedomSequence
-