Interface IOLFormulaCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
IntraocularLensCalculationsLeftEyeSequence.Item,IntraocularLensCalculationsRightEyeSequence.Item,IOLFormulaCodeSequence.SimpleHolder
- Enclosing class:
- IOLFormulaCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "IOL Formula Code Sequence" (see
IOLFormulaCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault IOLFormulaCodeSequenceAdds a new IOL Formula Code Sequence (seeIOLFormulaCodeSequence) with initial capacity 1 (seeensureIOLFormulaCodeSequence(int)) if it does not already exist.default IOLFormulaCodeSequenceensureIOLFormulaCodeSequence(int initialCapacity) Adds a new IOL Formula Code Sequence (seeIOLFormulaCodeSequence) if it does not already exist.default IOLFormulaCodeSequencedefault IOLFormulaCodeSequencenewIOLFormulaCodeSequence(int initialCapacity) Adds a new IOL Formula Code Sequence.default voidRemoves the IOL Formula Code Sequence (seeIOLFormulaCodeSequencewrap(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 IOL Formula Code Sequence (seeIOLFormulaCodeSequence)- Returns:
- A wrapper object implementing the
IOLFormulaCodeSequence.Holderinterface.
-
builder
- Returns:
- a
IOLFormulaCodeSequence.Holder.Builderto create IOL Formula Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theIOLFormulaCodeSequence.Holder.Builder.- Returns:
- a
IOLFormulaCodeSequence.Holder.Builderto create IOL Formula Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getIOLFormulaCodeSequence
- Returns:
- the IOL Formula Code Sequence (see
IOLFormulaCodeSequence)
-
newIOLFormulaCodeSequence
Adds a new IOL Formula Code Sequence. (seeIOLFormulaCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new IOL Formula Code Sequence
-
ensureIOLFormulaCodeSequence
Adds a new IOL Formula Code Sequence (seeIOLFormulaCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new IOL Formula Code Sequence is created.- Returns:
- Either the already existing IOL Formula Code Sequence (see
IOLFormulaCodeSequence) or a new one with capacityinitialCapacity.
-
ensureIOLFormulaCodeSequence
Adds a new IOL Formula Code Sequence (seeIOLFormulaCodeSequence) with initial capacity 1 (seeensureIOLFormulaCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing IOL Formula Code Sequence (see
IOLFormulaCodeSequence) or a new one with capacity 1.
-
containsIOLFormulaCodeSequence
default boolean containsIOLFormulaCodeSequence()- Returns:
- Whether it contains the IOL Formula Code Sequence (see
IOLFormulaCodeSequence)
-
removeIOLFormulaCodeSequence
default void removeIOLFormulaCodeSequence()Removes the IOL Formula Code Sequence (seeIOLFormulaCodeSequence
-