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

    Modifier and Type
    Method
    Description
    Returns the current state of this object.
  • Method Details

    • 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.