- All Implemented Interfaces:
- Direct Known Subclasses:
- Enclosing interface:
public static class ArithmeticGroupFunction.Or extends Object implements GroupFunctionThis does a logical 'or' operation. If at least one item is of 'activeState' this is returned, otherwise the 'passiveState' is returned. Through the getStateAs() method, it can be determined, how many items actually are in the 'activeState'.
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.