T - public class AnyOfPredicate<T> extends Object implements EPredicate<T>
EPredicate which will pass any input which is considered equal to
one of the specified objects, using the Object.equals(Object) implementation.| Modifier and Type | Field and Description |
|---|---|
protected List<EPredicate<T>> |
predicates |
| Constructor and Description |
|---|
AnyOfPredicate(EPredicate<T>... predicates) |
AnyOfPredicate(List<EPredicate<T>> predicates) |
| Modifier and Type | Method and Description |
|---|---|
AnyOfPredicate<T> |
or(EPredicate<T>... predicates) |
AnyOfPredicate<T> |
or(List<T> values) |
AnyOfPredicate<T> |
or(T... values) |
boolean |
pass(T input) |
String |
toString() |
protected List<EPredicate<T>> predicates
public AnyOfPredicate(EPredicate<T>... predicates)
public AnyOfPredicate(List<EPredicate<T>> predicates)
public boolean pass(T input)
pass in interface EPredicate<T>public AnyOfPredicate<T> or(EPredicate<T>... predicates)
public AnyOfPredicate<T> or(List<T> values)
public AnyOfPredicate<T> or(T... values)
Copyright © 2013 Atomic Leopard. All Rights Reserved.