Package org.vaadin.miki.markers
Interface HasState<S>
-
- Type Parameters:
S- Object that encapsulates current state.
- All Known Implementing Classes:
MultiClickButton
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HasState<S>
Marker interface for objects that have a state. State is read-only by default and other actions influence the state the component is in.- Since:
- 2020-07-08
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SgetState()Returns the current state of this object.
-
-
-
Method Detail
-
getState
S getState()
Returns the current state of this object. The changes to the resulting object should not affect this object.- Returns:
- Current state. May never be
null.
-
-