Class FileInfoDicom.LengthStorageUnit

java.lang.Object
gov.nih.mipav.model.file.FileInfoDicom.LengthStorageUnit
Enclosing class:
FileInfoDicom

class FileInfoDicom.LengthStorageUnit extends 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
    Internal integer value stored by this unit.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a storage wrapper for a primitive integer variable.
  • Method Summary

    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.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • value

      private int value
      Internal integer value stored by this unit.
  • Constructor Details

    • LengthStorageUnit

      public LengthStorageUnit(int i)
      Creates a storage wrapper for a primitive integer variable.
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object