Interface PresentationLUTContentSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
PresentationLUTContentSequence.SimpleHolder
- Enclosing class:
- PresentationLUTContentSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Presentation LUT Content Sequence" (see
PresentationLUTContentSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault PresentationLUTContentSequenceAdds a new Presentation LUT Content Sequence (seePresentationLUTContentSequence) with initial capacity 1 (seeensurePresentationLUTContentSequence(int)) if it does not already exist.default PresentationLUTContentSequenceensurePresentationLUTContentSequence(int initialCapacity) Adds a new Presentation LUT Content Sequence (seePresentationLUTContentSequence) if it does not already exist.default PresentationLUTContentSequencedefault PresentationLUTContentSequencenewPresentationLUTContentSequence(int initialCapacity) Adds a new Presentation LUT Content Sequence.default voidRemoves the Presentation LUT Content Sequence (seePresentationLUTContentSequencewrap(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 Presentation LUT Content Sequence (seePresentationLUTContentSequence)- Returns:
- A wrapper object implementing the
PresentationLUTContentSequence.Holderinterface.
-
builder
- Returns:
- a
PresentationLUTContentSequence.Holder.Builderto create Presentation LUT Content Sequence Items with a fluent API.
-
builder
static PresentationLUTContentSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePresentationLUTContentSequence.Holder.Builder.- Returns:
- a
PresentationLUTContentSequence.Holder.Builderto create Presentation LUT Content Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPresentationLUTContentSequence
- Returns:
- the Presentation LUT Content Sequence (see
PresentationLUTContentSequence)
-
newPresentationLUTContentSequence
Adds a new Presentation LUT Content Sequence. (seePresentationLUTContentSequence)- Parameters:
initialCapacity- the initial capacity for the new Presentation LUT Content Sequence
-
ensurePresentationLUTContentSequence
Adds a new Presentation LUT Content Sequence (seePresentationLUTContentSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Presentation LUT Content Sequence is created.- Returns:
- Either the already existing Presentation LUT Content Sequence (see
PresentationLUTContentSequence) or a new one with capacityinitialCapacity.
-
ensurePresentationLUTContentSequence
Adds a new Presentation LUT Content Sequence (seePresentationLUTContentSequence) with initial capacity 1 (seeensurePresentationLUTContentSequence(int)) if it does not already exist.- Returns:
- Either the already existing Presentation LUT Content Sequence (see
PresentationLUTContentSequence) or a new one with capacity 1.
-
containsPresentationLUTContentSequence
default boolean containsPresentationLUTContentSequence()- Returns:
- Whether it contains the Presentation LUT Content Sequence (see
PresentationLUTContentSequence)
-
removePresentationLUTContentSequence
default void removePresentationLUTContentSequence()Removes the Presentation LUT Content Sequence (seePresentationLUTContentSequence
-