Interface PixelValueTransformationSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
CurrentFrameFunctionalGroupsSequence.Item,PerFrameFunctionalGroupsSequence.Item,PixelValueTransformationSequence.SimpleHolder,SharedFunctionalGroupsSequence.Item
- Enclosing class:
- PixelValueTransformationSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Pixel Value Transformation Sequence" (see
PixelValueTransformationSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault PixelValueTransformationSequenceAdds a new Pixel Value Transformation Sequence (seePixelValueTransformationSequence) with initial capacity 1 (seeensurePixelValueTransformationSequence(int)) if it does not already exist.default PixelValueTransformationSequenceensurePixelValueTransformationSequence(int initialCapacity) Adds a new Pixel Value Transformation Sequence (seePixelValueTransformationSequence) if it does not already exist.default PixelValueTransformationSequencedefault PixelValueTransformationSequencenewPixelValueTransformationSequence(int initialCapacity) Adds a new Pixel Value Transformation Sequence.default voidRemoves the Pixel Value Transformation Sequence (seePixelValueTransformationSequencewrap(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 Value Transformation Sequence (seePixelValueTransformationSequence)- Returns:
- A wrapper object implementing the
PixelValueTransformationSequence.Holderinterface.
-
builder
- Returns:
- a
PixelValueTransformationSequence.Holder.Builderto create Pixel Value Transformation Sequence Items with a fluent API.
-
builder
static PixelValueTransformationSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePixelValueTransformationSequence.Holder.Builder.- Returns:
- a
PixelValueTransformationSequence.Holder.Builderto create Pixel Value Transformation Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPixelValueTransformationSequence
- Returns:
- the Pixel Value Transformation Sequence (see
PixelValueTransformationSequence)
-
newPixelValueTransformationSequence
Adds a new Pixel Value Transformation Sequence. (seePixelValueTransformationSequence)- Parameters:
initialCapacity- the initial capacity for the new Pixel Value Transformation Sequence
-
ensurePixelValueTransformationSequence
default PixelValueTransformationSequence ensurePixelValueTransformationSequence(int initialCapacity) Adds a new Pixel Value Transformation Sequence (seePixelValueTransformationSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Pixel Value Transformation Sequence is created.- Returns:
- Either the already existing Pixel Value Transformation Sequence (see
PixelValueTransformationSequence) or a new one with capacityinitialCapacity.
-
ensurePixelValueTransformationSequence
Adds a new Pixel Value Transformation Sequence (seePixelValueTransformationSequence) with initial capacity 1 (seeensurePixelValueTransformationSequence(int)) if it does not already exist.- Returns:
- Either the already existing Pixel Value Transformation Sequence (see
PixelValueTransformationSequence) or a new one with capacity 1.
-
containsPixelValueTransformationSequence
default boolean containsPixelValueTransformationSequence()- Returns:
- Whether it contains the Pixel Value Transformation Sequence (see
PixelValueTransformationSequence)
-
removePixelValueTransformationSequence
default void removePixelValueTransformationSequence()Removes the Pixel Value Transformation Sequence (seePixelValueTransformationSequence
-