public class Group<V> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
TYPE_AND
且组,表示子组 groups 之间都是 且 的关系
|
static int |
TYPE_OR
或组,表示子组 groups 之间都是 或 的关系
|
static int |
TYPE_RAW
原生组,表示改组有原生参数集
|
| 限定符和类型 | 方法和说明 |
|---|---|
Group<V> |
and(Group<V> other)
与另一个 Group 做 且 运算
|
int |
complexity()
计算组的复杂度
|
boolean |
equals(Object o) |
Group<V> |
filter(Predicate<V> predicate)
过滤不必要的子组
|
void |
forEach(Consumer<Event<V>> consumer)
遍历组
|
List<Group<V>> |
getGroups() |
V |
getValue() |
int |
hashCode() |
boolean |
isAnd() |
boolean |
isOr() |
boolean |
isRaw() |
boolean |
judgeAll(Predicate<V> evaluator)
判断是否所有的 V 都满足 evaluator
|
boolean |
judgeAny(Predicate<V> evaluator)
判断是否存在一个 V 满足 evaluator
|
Group<V> |
or(Group<V> other)
与另一个 Group 做 或 运算
|
String |
toString() |
<R> Group<R> |
transform(Function<V,R> transformer)
值转换
|
public static final int TYPE_AND
public static final int TYPE_OR
public static final int TYPE_RAW
public Group(int type)
public Group(V value)
public <R> Group<R> transform(Function<V,R> transformer)
R - 转换后的类型transformer - 转换器public boolean judgeAny(Predicate<V> evaluator)
evaluator - 评估器public boolean judgeAll(Predicate<V> evaluator)
evaluator - 评估器public int complexity()
public boolean isRaw()
public boolean isAnd()
public boolean isOr()
public V getValue()
Copyright © 2024. All rights reserved.