- All Implemented Interfaces:
- Enclosing interface:
public static class GroupFunction.Equality extends Object implements GroupFunctionThis is the default group function that does nothing else than to check if all member items have the same state. If this is the case, this state is returned, otherwise UNDEF is returned.
- Kai Kreuzer - Initial contribution
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
calculate(@Nullable Set<Item> items)Determines the current state of a group based on a list of items
getParameters()Returns the parameters of the function as an array.
<T extends State>
getStateAs(@Nullable Set<Item> items, Class<T> stateClass)Calculates the group state and returns it as a state of the requested type.
calculateDetermines the current state of a group based on a list of items
getStateAsCalculates the group state and returns it as a state of the requested type.