public class P<V> extends Object implements Predicate<V>, Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
protected BiPredicate<V,V> |
biPredicate |
protected V |
originalValue |
protected V |
value |
Constructor and Description |
---|
P(BiPredicate<V,V> biPredicate,
V value) |
Modifier and Type | Method and Description |
---|---|
P<V> |
and(Predicate<? super V> predicate) |
static <V> P<V> |
between(V first,
V second) |
P<V> |
clone() |
static <V> P<V> |
eq(V value) |
boolean |
equals(Object other) |
BiPredicate<V,V> |
getBiPredicate() |
V |
getOriginalValue()
Gets the original value used at time of construction of the
P . |
V |
getValue()
Gets the current value to be passed to the predicate for testing.
|
static <V> P<V> |
gt(V value) |
static <V> P<V> |
gte(V value) |
int |
hashCode() |
static <V> P<V> |
inside(V first,
V second) |
static <V> P<V> |
lt(V value) |
static <V> P<V> |
lte(V value) |
P<V> |
negate() |
static <V> P<V> |
neq(V value) |
static <V> P<V> |
not(P<V> predicate) |
P<V> |
or(Predicate<? super V> predicate) |
static <V> P<V> |
outside(V first,
V second) |
void |
setValue(V value) |
static P |
test(BiPredicate biPredicate,
Object value) |
boolean |
test(V testValue) |
String |
toString() |
static <V> P<V> |
within(Collection<V> value) |
static <V> P<V> |
within(V... values) |
static <V> P<V> |
without(Collection<V> value) |
static <V> P<V> |
without(V... values) |
protected BiPredicate<V,V> biPredicate
protected V value
protected V originalValue
public P(BiPredicate<V,V> biPredicate, V value)
public BiPredicate<V,V> getBiPredicate()
public V getOriginalValue()
P
. This value can change its type
in some cases.public V getValue()
public void setValue(V value)
public static <V> P<V> eq(V value)
public static <V> P<V> neq(V value)
public static <V> P<V> lt(V value)
public static <V> P<V> lte(V value)
public static <V> P<V> gt(V value)
public static <V> P<V> gte(V value)
public static <V> P<V> inside(V first, V second)
public static <V> P<V> outside(V first, V second)
public static <V> P<V> between(V first, V second)
public static <V> P<V> within(V... values)
public static <V> P<V> within(Collection<V> value)
public static <V> P<V> without(V... values)
public static <V> P<V> without(Collection<V> value)
public static P test(BiPredicate biPredicate, Object value)
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.