Package gov.nih.mipav.model.file
Class FileInfoDicom.LengthStorageUnit
- java.lang.Object
-
- gov.nih.mipav.model.file.FileInfoDicom.LengthStorageUnit
-
- Enclosing class:
- FileInfoDicom
class FileInfoDicom.LengthStorageUnit extends java.lang.Object
This class is a basic storage unit for a primitive integer variable. By creating this storage unit, modified map values that are stored using this method only need to be accessed once.- Author:
- senseneyj
-
-
Field Summary
Fields Modifier and Type Field Description private int
value
Internal integer value stored by this unit.
-
Constructor Summary
Constructors Constructor Description LengthStorageUnit(int i)
Creates a storage wrapper for a primitive integer variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int i)
Adds the parameter i to the stored value.int
get()
Gets the stored value of this storage unit to i.void
set(int i)
Sets the stored value of this storage unit to i.java.lang.String
toString()
-
-
-
Method Detail
-
add
public void add(int i)
Adds the parameter i to the stored value.
-
set
public void set(int i)
Sets the stored value of this storage unit to i.
-
get
public int get()
Gets the stored value of this storage unit to i.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-