Class MenuState<T>
java.lang.Object
com.thecoderscorner.menu.domain.state.MenuState<T>
- Type Parameters:
T- the type of current value.
- Direct Known Subclasses:
BigDecimalMenuState,BooleanMenuState,CurrentScrollPositionMenuState,FloatMenuState,IntegerMenuState,PortableColorMenuState,StringListMenuState,StringMenuState
The base class of menu state, stores the value, if it's active and changed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Method Details
-
getItem
Gets the menu item associated with this state.- Returns:
- the menu item
-
isChanged
public boolean isChanged()gets the changed status- Returns:
- changed status
-
isActive
public boolean isActive()gets the active status- Returns:
- active status
-
getValue
gets the current value- Returns:
- current value
-
equals
-
hashCode
public int hashCode()
-