Interface PixelShiftSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
MaskSubtractionSequence.Item,PixelShiftSequence.SimpleHolder
- Enclosing class:
- PixelShiftSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Pixel Shift Sequence" (see
PixelShiftSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault PixelShiftSequenceAdds a new Pixel Shift Sequence (seePixelShiftSequence) with initial capacity 1 (seeensurePixelShiftSequence(int)) if it does not already exist.default PixelShiftSequenceensurePixelShiftSequence(int initialCapacity) Adds a new Pixel Shift Sequence (seePixelShiftSequence) if it does not already exist.default PixelShiftSequencedefault PixelShiftSequencenewPixelShiftSequence(int initialCapacity) Adds a new Pixel Shift Sequence.default voidRemoves the Pixel Shift Sequence (seePixelShiftSequencestatic PixelShiftSequence.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 Pixel Shift Sequence (seePixelShiftSequence)- Returns:
- A wrapper object implementing the
PixelShiftSequence.Holderinterface.
-
builder
- Returns:
- a
PixelShiftSequence.Holder.Builderto create Pixel Shift Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by thePixelShiftSequence.Holder.Builder.- Returns:
- a
PixelShiftSequence.Holder.Builderto create Pixel Shift Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPixelShiftSequence
- Returns:
- the Pixel Shift Sequence (see
PixelShiftSequence)
-
newPixelShiftSequence
Adds a new Pixel Shift Sequence. (seePixelShiftSequence)- Parameters:
initialCapacity- the initial capacity for the new Pixel Shift Sequence
-
ensurePixelShiftSequence
Adds a new Pixel Shift Sequence (seePixelShiftSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Pixel Shift Sequence is created.- Returns:
- Either the already existing Pixel Shift Sequence (see
PixelShiftSequence) or a new one with capacityinitialCapacity.
-
ensurePixelShiftSequence
Adds a new Pixel Shift Sequence (seePixelShiftSequence) with initial capacity 1 (seeensurePixelShiftSequence(int)) if it does not already exist.- Returns:
- Either the already existing Pixel Shift Sequence (see
PixelShiftSequence) or a new one with capacity 1.
-
containsPixelShiftSequence
default boolean containsPixelShiftSequence()- Returns:
- Whether it contains the Pixel Shift Sequence (see
PixelShiftSequence)
-
removePixelShiftSequence
default void removePixelShiftSequence()Removes the Pixel Shift Sequence (seePixelShiftSequence
-