Class 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()  
      • Methods inherited from class java.lang.Object

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

      • value

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

      • LengthStorageUnit

        public LengthStorageUnit​(int i)
        Creates a storage wrapper for a primitive integer variable.
    • 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 class java.lang.Object