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.ObjectThis 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 intvalueInternal 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 voidadd(int i)Adds the parameter i to the stored value.intget()Gets the stored value of this storage unit to i.voidset(int i)Sets the stored value of this storage unit to i.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-