Interface RecordedBlockSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
GeneralMachineVerificationSequence.Item,TreatmentSessionBeamSequence.Item,TreatmentSessionIonBeamSequence.Item
- Enclosing class:
- RecordedBlockSequence
public static interface RecordedBlockSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Recorded Block Sequence" (seeRecordedBlockSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRecordedBlockSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static RecordedBlockSequence.Holder.Builderbuilder()static RecordedBlockSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsRecordedBlockSequence()default RecordedBlockSequenceensureRecordedBlockSequence()Adds a new Recorded Block Sequence (seeRecordedBlockSequence) with initial capacity 1 (seeensureRecordedBlockSequence(int)) if it does not already exist.default RecordedBlockSequenceensureRecordedBlockSequence(int initialCapacity)Adds a new Recorded Block Sequence (seeRecordedBlockSequence) if it does not already exist.default RecordedBlockSequencegetRecordedBlockSequence()default RecordedBlockSequencenewRecordedBlockSequence(int initialCapacity)Adds a new Recorded Block Sequence.default voidremoveRecordedBlockSequence()Removes the Recorded Block Sequence (seeRecordedBlockSequencestatic RecordedBlockSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static RecordedBlockSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Recorded Block Sequence (seeRecordedBlockSequence)- Returns:
- a wrapper object implementing the
RecordedBlockSequence.Holderinterface.
-
builder
static RecordedBlockSequence.Holder.Builder builder()
- Returns:
- a
RecordedBlockSequence.Holder.Builderto create Recorded Block Sequence Items with a fluent API.
-
builder
static RecordedBlockSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theRecordedBlockSequence.Holder.Builder.- Returns:
- a
RecordedBlockSequence.Holder.Builderto create Recorded Block Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRecordedBlockSequence
default RecordedBlockSequence getRecordedBlockSequence()
- Returns:
- the Recorded Block Sequence (see
RecordedBlockSequence)
-
newRecordedBlockSequence
default RecordedBlockSequence newRecordedBlockSequence(int initialCapacity)
Adds a new Recorded Block Sequence. (seeRecordedBlockSequence)- Parameters:
initialCapacity- the initial capacity for the new Recorded Block Sequence- Returns:
- the newly created RecordedBlockSequence.
-
ensureRecordedBlockSequence
default RecordedBlockSequence ensureRecordedBlockSequence(int initialCapacity)
Adds a new Recorded Block Sequence (seeRecordedBlockSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Recorded Block Sequence is created.- Returns:
- either the already existing Recorded Block Sequence (see
RecordedBlockSequence) or a new one with capacityinitialCapacity.
-
ensureRecordedBlockSequence
default RecordedBlockSequence ensureRecordedBlockSequence()
Adds a new Recorded Block Sequence (seeRecordedBlockSequence) with initial capacity 1 (seeensureRecordedBlockSequence(int)) if it does not already exist.- Returns:
- either the already existing Recorded Block Sequence (see
RecordedBlockSequence) or a new one with capacity 1.
-
containsRecordedBlockSequence
default boolean containsRecordedBlockSequence()
- Returns:
- whether it contains the Recorded Block Sequence (see
RecordedBlockSequence)
-
removeRecordedBlockSequence
default void removeRecordedBlockSequence()
Removes the Recorded Block Sequence (seeRecordedBlockSequence
-
-