Package iip.datatypes

Class DataImpl

java.lang.Object
iip.datatypes.DataImpl
All Implemented Interfaces:
Data

public class DataImpl extends Object implements Data
Implements Data.
Author:
Holger Eichelberger, SSE
  • Field Details

    • value

      private int value
  • Constructor Details

    • DataImpl

      public DataImpl()
      Default constructor. Fields are pre-allocated with default Java values.
    • DataImpl

      public DataImpl(Data from)
      Copy constructor.
      Parameters:
      from - the instance to copy the values from
  • Method Details

    • getValue

      public int getValue()
      Description copied from interface: Data
      Returns the value. [JSON]
      Specified by:
      getValue in interface Data
      Returns:
      the value
    • setValue

      public void setValue(int value)
      Description copied from interface: Data
      Changes the value. [JSON]
      Specified by:
      setValue in interface Data
      Parameters:
      value - the new value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object