Interface CellValuesSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
CellValuesSequence.SimpleHolder,TabulatedValuesSequence.Item
- Enclosing class:
- CellValuesSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Cell Values Sequence" (see
CellValuesSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault CellValuesSequenceAdds a new Cell Values Sequence (seeCellValuesSequence) with initial capacity 1 (seeensureCellValuesSequence(int)) if it does not already exist.default CellValuesSequenceensureCellValuesSequence(int initialCapacity) Adds a new Cell Values Sequence (seeCellValuesSequence) if it does not already exist.default CellValuesSequencedefault CellValuesSequencenewCellValuesSequence(int initialCapacity) Adds a new Cell Values Sequence.default voidRemoves the Cell Values Sequence (seeCellValuesSequencestatic CellValuesSequence.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 Cell Values Sequence (seeCellValuesSequence)- Returns:
- A wrapper object implementing the
CellValuesSequence.Holderinterface.
-
builder
- Returns:
- a
CellValuesSequence.Holder.Builderto create Cell Values Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theCellValuesSequence.Holder.Builder.- Returns:
- a
CellValuesSequence.Holder.Builderto create Cell Values Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getCellValuesSequence
- Returns:
- the Cell Values Sequence (see
CellValuesSequence)
-
newCellValuesSequence
Adds a new Cell Values Sequence. (seeCellValuesSequence)- Parameters:
initialCapacity- the initial capacity for the new Cell Values Sequence
-
ensureCellValuesSequence
Adds a new Cell Values Sequence (seeCellValuesSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Cell Values Sequence is created.- Returns:
- Either the already existing Cell Values Sequence (see
CellValuesSequence) or a new one with capacityinitialCapacity.
-
ensureCellValuesSequence
Adds a new Cell Values Sequence (seeCellValuesSequence) with initial capacity 1 (seeensureCellValuesSequence(int)) if it does not already exist.- Returns:
- Either the already existing Cell Values Sequence (see
CellValuesSequence) or a new one with capacity 1.
-
containsCellValuesSequence
default boolean containsCellValuesSequence()- Returns:
- Whether it contains the Cell Values Sequence (see
CellValuesSequence)
-
removeCellValuesSequence
default void removeCellValuesSequence()Removes the Cell Values Sequence (seeCellValuesSequence
-