Interface DataState

  • All Known Implementing Classes:
    AbstractDataStateImpl

    public interface DataState
    Stores the values of a fixed number of variables that are of the types Long or Double.
    Author:
    F. Mannhardt
    • Method Detail

      • putDouble

        void putDouble​(int varIdx,
                       double value)
      • putLong

        void putLong​(int varIdx,
                     long value)
      • getLong

        long getLong​(int varIdx)
      • getDouble

        double getDouble​(int varIdx)
      • tryGetDouble

        java.lang.Double tryGetDouble​(int varIdx)
      • tryGetLong

        java.lang.Long tryGetLong​(int varIdx)
      • contains

        boolean contains​(int varIdx)
      • isEmpty

        boolean isEmpty()
      • capacity

        int capacity()
      • size

        int size()
      • clear

        void clear()
        Set all variables to unset
      • update

        void update​(DataState dataEffect)
        Updates the values of this instance with the non-null ones in the supplied one.
        Parameters:
        dataEffect -
      • makeStateImmutable

        DataState makeStateImmutable()
        Returns:
        an immutable version of this state (might return a clone or the original)