Module com.rezzedup.util.constants
Package com.rezzedup.util.constants
Interface Aggregates.Pending.Aggregation<T>
-
- Type Parameters:
T- constant type
- All Superinterfaces:
Aggregates.Pending
- Enclosing interface:
- Aggregates.Pending
public static interface Aggregates.Pending.Aggregation<T> extends Aggregates.Pending
Step: update settings further or aggregate constants.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.rezzedup.util.constants.Aggregates.Pending
Aggregates.Pending.Aggregation<T>, Aggregates.Pending.ConstantType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Aggregates.Pending.Aggregation<T>matching(MatchRules rules)Sets the match rules, overwriting any existing rules.Aggregates.Pending.Aggregation<T>matching(UnaryOperator<MatchRules> match)Updates the match rules, appending to any previously set rules.Stream<Constant<T>>stream()Streams all constants matching the specified type and previously-defined rules.default <C extends Collection<T>>
CtoCollection(Supplier<C> constructor)Collects all constant values matching the specified type and previously-defined rules directly into the collection provided by the constructor.default List<T>toList()Creates an immutable list containing all constant values matching the specified type and previously-defined rules.default Set<T>toSet()Creates an immutable set containing all constant values matching the specified type and previously-defined rules.
-
-
-
Method Detail
-
matching
Aggregates.Pending.Aggregation<T> matching(MatchRules rules)
Sets the match rules, overwriting any existing rules.- Parameters:
rules- match rules- Returns:
- self (for method chaining)
-
matching
Aggregates.Pending.Aggregation<T> matching(UnaryOperator<MatchRules> match)
Updates the match rules, appending to any previously set rules.- Parameters:
match- rules update operation- Returns:
- self (for method chaining)
-
stream
Stream<Constant<T>> stream()
Streams all constants matching the specified type and previously-defined rules.- Returns:
- stream of all applicable constants
-
toCollection
default <C extends Collection<T>> C toCollection(Supplier<C> constructor)
Collects all constant values matching the specified type and previously-defined rules directly into the collection provided by the constructor.- Type Parameters:
C- collection type- Parameters:
constructor- collection constructor- Returns:
- collection containing all applicable constant values
-
toList
default List<T> toList()
Creates an immutable list containing all constant values matching the specified type and previously-defined rules.- Returns:
- immutable list containing all applicable constant values
-
-