Interface DriveProbeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
DriveProbeSequence.SimpleHolder
- Enclosing class:
- DriveProbeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Drive Probe Sequence" (see
DriveProbeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault DriveProbeSequenceAdds a new Drive Probe Sequence (seeDriveProbeSequence) with initial capacity 1 (seeensureDriveProbeSequence(int)) if it does not already exist.default DriveProbeSequenceensureDriveProbeSequence(int initialCapacity) Adds a new Drive Probe Sequence (seeDriveProbeSequence) if it does not already exist.default DriveProbeSequencedefault DriveProbeSequencenewDriveProbeSequence(int initialCapacity) Adds a new Drive Probe Sequence.default voidRemoves the Drive Probe Sequence (seeDriveProbeSequencestatic DriveProbeSequence.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 Drive Probe Sequence (seeDriveProbeSequence)- Returns:
- A wrapper object implementing the
DriveProbeSequence.Holderinterface.
-
builder
- Returns:
- a
DriveProbeSequence.Holder.Builderto create Drive Probe Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theDriveProbeSequence.Holder.Builder.- Returns:
- a
DriveProbeSequence.Holder.Builderto create Drive Probe Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDriveProbeSequence
- Returns:
- the Drive Probe Sequence (see
DriveProbeSequence)
-
newDriveProbeSequence
Adds a new Drive Probe Sequence. (seeDriveProbeSequence)- Parameters:
initialCapacity- the initial capacity for the new Drive Probe Sequence
-
ensureDriveProbeSequence
Adds a new Drive Probe Sequence (seeDriveProbeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Drive Probe Sequence is created.- Returns:
- Either the already existing Drive Probe Sequence (see
DriveProbeSequence) or a new one with capacityinitialCapacity.
-
ensureDriveProbeSequence
Adds a new Drive Probe Sequence (seeDriveProbeSequence) with initial capacity 1 (seeensureDriveProbeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Drive Probe Sequence (see
DriveProbeSequence) or a new one with capacity 1.
-
containsDriveProbeSequence
default boolean containsDriveProbeSequence()- Returns:
- Whether it contains the Drive Probe Sequence (see
DriveProbeSequence)
-
removeDriveProbeSequence
default void removeDriveProbeSequence()Removes the Drive Probe Sequence (seeDriveProbeSequence
-