Class GUIHistoryItem

  • All Implemented Interfaces:
    java.lang.Comparable<GUIHistoryItem>

    public class GUIHistoryItem
    extends java.lang.Object
    implements java.lang.Comparable<GUIHistoryItem>
    Stores one value entered via the GUI until they are saved permanently.
    Author:
    Sass
    • Constructor Detail

      • GUIHistoryItem

        GUIHistoryItem​(Value value,
                       IAssignmentState state,
                       IDecisionVariable variable,
                       java.lang.Long lastEdited)
        Sole constructor for this class. This constructor defines a new value assignment.
        Parameters:
        value - The value which shall be saved.
        state - The assignment state which shall be saved.
        variable - The variable which shall be saved.
        lastEdited - Time in milliseconds
    • Method Detail

      • getValue

        public Value getValue()
        Getter for the value.
        Returns:
        the value (must not be null).
      • getState

        public IAssignmentState getState()
        Getter for the assignment state.
        Returns:
        the state (must not be null).
      • getVariable

        public IDecisionVariable getVariable()
        Getter for the variable.
        Returns:
        the variable (must not be null).
      • getLastEdited

        public java.lang.Long getLastEdited()
        Getter for the last edited value.
        Returns:
        last Edited in Milliseconds
      • compareTo

        public int compareTo​(GUIHistoryItem historyItem)
        Specified by:
        compareTo in interface java.lang.Comparable<GUIHistoryItem>