Class MenuState<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      MenuState​(boolean changed, boolean active, T value)
      normally these states are created from the menu item, instead of directly
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      T getValue()
      gets the current value
      int hashCode()  
      boolean isActive()
      gets the active status
      boolean isChanged()
      gets the changed status
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MenuState

        public MenuState​(boolean changed,
                         boolean active,
                         T value)
        normally these states are created from the menu item, instead of directly
        Parameters:
        changed - if the item has changed
        active - if the item is active.
        value - the current value
    • Method Detail

      • isChanged

        public boolean isChanged()
        gets the changed status
        Returns:
        changed status
      • isActive

        public boolean isActive()
        gets the active status
        Returns:
        active status
      • getValue

        public T getValue()
        gets the current value
        Returns:
        current value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object