Interface LensConstantSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
IntraocularLensCalculationsLeftEyeSequence.Item,IntraocularLensCalculationsRightEyeSequence.Item
- Enclosing class:
- LensConstantSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Lens Constant Sequence" (see
LensConstantSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault LensConstantSequenceAdds a new Lens Constant Sequence (seeLensConstantSequence) with initial capacity 1 (seeensureLensConstantSequence(int)) if it does not already exist.default LensConstantSequenceensureLensConstantSequence(int initialCapacity) Adds a new Lens Constant Sequence (seeLensConstantSequence) if it does not already exist.default LensConstantSequencedefault LensConstantSequencenewLensConstantSequence(int initialCapacity) Adds a new Lens Constant Sequence.default voidRemoves the Lens Constant Sequence (seeLensConstantSequencestatic LensConstantSequence.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 Lens Constant Sequence (seeLensConstantSequence)- Returns:
- A wrapper object implementing the
LensConstantSequence.Holderinterface.
-
getLensConstantSequence
- Returns:
- the Lens Constant Sequence (see
LensConstantSequence)
-
newLensConstantSequence
Adds a new Lens Constant Sequence. (seeLensConstantSequence)- Parameters:
initialCapacity- the initial capacity for the new Lens Constant Sequence
-
ensureLensConstantSequence
Adds a new Lens Constant Sequence (seeLensConstantSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Lens Constant Sequence is created.- Returns:
- Either the already existing Lens Constant Sequence (see
LensConstantSequence) or a new one with capacityinitialCapacity.
-
ensureLensConstantSequence
Adds a new Lens Constant Sequence (seeLensConstantSequence) with initial capacity 1 (seeensureLensConstantSequence(int)) if it does not already exist.- Returns:
- Either the already existing Lens Constant Sequence (see
LensConstantSequence) or a new one with capacity 1.
-
containsLensConstantSequence
default boolean containsLensConstantSequence()- Returns:
- Whether it contains the Lens Constant Sequence (see
LensConstantSequence)
-
removeLensConstantSequence
default void removeLensConstantSequence()Removes the Lens Constant Sequence (seeLensConstantSequence
-