Interface CellValuesSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
TabulatedValuesSequence.Item
- Enclosing class:
- CellValuesSequence
public static interface CellValuesSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Cell Values Sequence" (seeCellValuesSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCellValuesSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static CellValuesSequence.Holder.Builderbuilder()static CellValuesSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsCellValuesSequence()default CellValuesSequenceensureCellValuesSequence()Adds 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 CellValuesSequencegetCellValuesSequence()default CellValuesSequencenewCellValuesSequence(int initialCapacity)Adds a new Cell Values Sequence.default voidremoveCellValuesSequence()Removes the Cell Values Sequence (seeCellValuesSequencestatic CellValuesSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static CellValuesSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Cell Values Sequence (seeCellValuesSequence)- Returns:
- a wrapper object implementing the
CellValuesSequence.Holderinterface.
-
builder
static CellValuesSequence.Holder.Builder builder()
- Returns:
- a
CellValuesSequence.Holder.Builderto create Cell Values Sequence Items with a fluent API.
-
builder
static CellValuesSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default CellValuesSequence getCellValuesSequence()
- Returns:
- the Cell Values Sequence (see
CellValuesSequence)
-
newCellValuesSequence
default CellValuesSequence newCellValuesSequence(int initialCapacity)
Adds a new Cell Values Sequence. (seeCellValuesSequence)- Parameters:
initialCapacity- the initial capacity for the new Cell Values Sequence- Returns:
- the newly created CellValuesSequence.
-
ensureCellValuesSequence
default CellValuesSequence ensureCellValuesSequence(int initialCapacity)
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
default CellValuesSequence 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
-
-