Interface IValue<T>

    • Method Detail

      • get

        T get()
        Returns:
        the stored value.
      • set

        void set​(T value)
        Parameters:
        value - the value to set.
      • isEqual

        boolean isEqual​(T other)
        Checks the value for equality with the current stored value.
        Parameters:
        other - the other value to check.
        Returns:
        true if other value is equal to this value, false otherwise.
      • createWorkingCopy

        IValue<T> createWorkingCopy()
        Specified by:
        createWorkingCopy in interface IModel
        Returns:
        the model working copy or null if working copies is not supported by the model.
      • addValueListener

        void addValueListener​(IValueListener<T> listener)
        Adds the value listener.
        Parameters:
        listener - the listener to add.
      • removeValueListener

        void removeValueListener​(IValueListener<T> listener)
        Removes the value listener.
        Parameters:
        listener - the listener to remove.