Package com.exedio.cope
Class CompositeCondition
- java.lang.Object
-
- com.exedio.cope.Condition
-
- com.exedio.cope.CompositeCondition
-
- All Implemented Interfaces:
Serializable
public final class CompositeCondition extends Condition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositeCondition.Operator
-
Field Summary
Fields Modifier and Type Field Description CompositeCondition.Operator
operator
-
Constructor Summary
Constructors Constructor Description CompositeCondition(CompositeCondition.Operator operator, Condition... conditions)
Deprecated.UseCope.and(Condition[])
orCope.or(Condition[])
insteadCompositeCondition(CompositeCondition.Operator operator, List<? extends Condition> conditions)
Deprecated.UseCope.and(List)
orCope.or(List)
instead
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
int
hashCode()
static <E> Condition
in(Function<E> function, E... values)
static <E> Condition
in(Function<E> function, Collection<? extends E> values)
-
-
-
Field Detail
-
operator
public final CompositeCondition.Operator operator
-
-
Constructor Detail
-
CompositeCondition
@Deprecated public CompositeCondition(CompositeCondition.Operator operator, List<? extends Condition> conditions)
Deprecated.UseCope.and(List)
orCope.or(List)
instead- Throws:
NullPointerException
- ifconditions==null
IllegalArgumentException
- ifconditions.size()==0
-
CompositeCondition
@Deprecated public CompositeCondition(CompositeCondition.Operator operator, Condition... conditions)
Deprecated.UseCope.and(Condition[])
orCope.or(Condition[])
instead- Throws:
NullPointerException
- ifconditions==null
IllegalArgumentException
- ifconditions.length==0
-
-
Method Detail
-
in
@SafeVarargs public static <E> Condition in(Function<E> function, E... values)
-
in
public static <E> Condition in(Function<E> function, Collection<? extends E> values)
-
-