public abstract class Predicates<T>
extends java.lang.Object
implements com.gs.collections.api.block.predicate.Predicate<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
Predicates.AllSatisfy<T> |
static class |
Predicates.AnySatisfy<T> |
protected static class |
Predicates.AttributePredicate<T,V> |
protected static class |
Predicates.GreaterThanOrEqualPredicate<T extends java.lang.Comparable<? super T>> |
protected static class |
Predicates.GreaterThanPredicate<T extends java.lang.Comparable<? super T>> |
protected static class |
Predicates.LessThanOrEqualPredicate<T extends java.lang.Comparable<? super T>> |
protected static class |
Predicates.LessThanPredicate<T extends java.lang.Comparable<? super T>> |
static class |
Predicates.NoneSatisfy<T> |
protected static class |
Predicates.RangePredicate<T extends java.lang.Comparable<? super T>> |
| Constructor and Description |
|---|
Predicates() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicates<T> |
adapt(com.gs.collections.api.block.predicate.Predicate<T> predicate) |
static <T> Predicates<java.lang.Iterable<T>> |
allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static Predicates<java.lang.Object> |
alwaysFalse() |
static Predicates<java.lang.Object> |
alwaysTrue() |
static <T> Predicates<T> |
and(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> predicates) |
static <T> Predicates<T> |
and(com.gs.collections.api.block.predicate.Predicate<? super T>... predicates) |
Predicates<T> |
and(com.gs.collections.api.block.predicate.Predicate<? super T> op) |
static <T> Predicates<T> |
and(com.gs.collections.api.block.predicate.Predicate<? super T> predicate1,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate2) |
static <T> Predicates<java.lang.Iterable<T>> |
anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static Predicates<java.lang.Object> |
assignableFrom(java.lang.Class<?> clazz) |
static <T,V> Predicates<T> |
attributeAllSatisfy(com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
com.gs.collections.api.block.predicate.Predicate<? super V> predicate) |
static <T,V> Predicates<T> |
attributeAnySatisfy(com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
com.gs.collections.api.block.predicate.Predicate<? super V> predicate) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeBetweenExclusive(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeBetweenInclusive(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeBetweenInclusiveFrom(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeBetweenInclusiveTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T> Predicates<T> |
attributeEqual(com.gs.collections.api.block.function.Function<? super T,?> function,
java.lang.Object object) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeGreaterThan(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeGreaterThanOrEqualTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T> Predicates<T> |
attributeIn(com.gs.collections.api.block.function.Function<? super T,?> function,
java.lang.Iterable<?> iterable)
Creates a predicate which returns true if an attribute selected from an object passed to accept method
is contained in the iterable.
|
static <T> Predicates<T> |
attributeIsNull(com.gs.collections.api.block.function.Function<? super T,?> function) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeLessThan(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T,V extends java.lang.Comparable<? super V>> |
attributeLessThanOrEqualTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T> Predicates<T> |
attributeNotEqual(com.gs.collections.api.block.function.Function<? super T,?> function,
java.lang.Object object) |
static <T> Predicates<T> |
attributeNotIn(com.gs.collections.api.block.function.Function<? super T,?> function,
java.lang.Iterable<?> iterable)
Creates a predicate which returns true if an attribute selected from an object passed to accept method
is not contained in the iterable.
|
static <T> Predicates<T> |
attributeNotNull(com.gs.collections.api.block.function.Function<? super T,?> function) |
static <T,V> Predicates<T> |
attributePredicate(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
com.gs.collections.api.block.predicate.Predicate<? super V> predicate) |
static <T extends java.lang.Comparable<? super T>> |
betweenExclusive(T from,
T to)
Creates a predicate which returns true if an object passed to accept method is within the range, exclusive
of the from and to values.
|
static <T extends java.lang.Comparable<? super T>> |
betweenInclusive(T from,
T to)
Creates a predicate which returns true if an object passed to accept method is within the range, inclusive
of the from and to values.
|
static <T extends java.lang.Comparable<? super T>> |
betweenInclusiveFrom(T from,
T to)
Creates a predicate which returns true if an object passed to accept method is within the range, inclusive
of the from and exclusive from the to value.
|
static <T extends java.lang.Comparable<? super T>> |
betweenInclusiveTo(T from,
T to)
Creates a predicate which returns true if an object passed to accept method is within the range, exclusive
of the from and inclusive of the to value.
|
static Predicates<java.lang.Object> |
equal(java.lang.Object object)
Tests for equality.
|
static <T extends java.lang.Comparable<? super T>> |
greaterThan(T object) |
static <T extends java.lang.Comparable<? super T>> |
greaterThanOrEqualTo(T object) |
static <T> Predicates<T> |
ifFalse(com.gs.collections.api.block.function.Function<? super T,java.lang.Boolean> function) |
static <T> Predicates<T> |
ifTrue(com.gs.collections.api.block.function.Function<? super T,java.lang.Boolean> function) |
static Predicates<java.lang.Object> |
in(java.lang.Iterable<?> iterable)
Creates a predicate which returns true if an object passed to accept method is contained in the iterable.
|
static Predicates<java.lang.Object> |
in(java.lang.Object[] array) |
static Predicates<java.lang.Object> |
instanceOf(java.lang.Class<?> clazz) |
static Predicates<java.lang.Object> |
isNull() |
static <T extends java.lang.Comparable<? super T>> |
lessThan(T object) |
static <T extends java.lang.Comparable<? super T>> |
lessThanOrEqualTo(T object) |
static <T> Predicates<T> |
neither(com.gs.collections.api.block.predicate.Predicate<? super T> operation1,
com.gs.collections.api.block.predicate.Predicate<? super T> operation2) |
static <T> Predicates<T> |
noneOf(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> operations) |
static <T> Predicates<T> |
noneOf(com.gs.collections.api.block.predicate.Predicate<? super T>... operations) |
static <T> Predicates<java.lang.Iterable<T>> |
noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
Predicates<T> |
not() |
static <T> Predicates<T> |
not(com.gs.collections.api.block.predicate.Predicate<T> predicate) |
static Predicates<java.lang.Object> |
notEqual(java.lang.Object object) |
static Predicates<java.lang.Object> |
notIn(java.lang.Iterable<?> iterable)
Creates a predicate which returns true if an object passed to accept method is not contained in
the iterable.
|
static Predicates<java.lang.Object> |
notIn(java.lang.Object[] array) |
static Predicates<java.lang.Object> |
notInstanceOf(java.lang.Class<?> clazz) |
static Predicates<java.lang.Object> |
notNull() |
static Predicates<java.lang.Object> |
notSameAs(java.lang.Object object) |
static <T> Predicates<T> |
or(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> predicates) |
static <T> Predicates<T> |
or(com.gs.collections.api.block.predicate.Predicate<? super T>... predicates) |
Predicates<T> |
or(com.gs.collections.api.block.predicate.Predicate<? super T> op) |
static <T> Predicates<T> |
or(com.gs.collections.api.block.predicate.Predicate<? super T> predicate1,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate2) |
static Predicates<java.lang.Object> |
sameAs(java.lang.Object object) |
static Predicates<java.lang.Class<?>> |
subClass(java.lang.Class<?> aClass) |
static Predicates<java.lang.Class<?>> |
superClass(java.lang.Class<?> aClass) |
static <T> com.gs.collections.api.block.predicate.Predicate<T> |
synchronizedEach(com.gs.collections.api.block.predicate.Predicate<T> predicate) |
public static <T> Predicates<T> adapt(com.gs.collections.api.block.predicate.Predicate<T> predicate)
public static <T> com.gs.collections.api.block.predicate.Predicate<T> synchronizedEach(com.gs.collections.api.block.predicate.Predicate<T> predicate)
public static <T> Predicates<T> or(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> predicates)
public static <T> Predicates<T> or(com.gs.collections.api.block.predicate.Predicate<? super T> predicate1, com.gs.collections.api.block.predicate.Predicate<? super T> predicate2)
public static <T> Predicates<T> or(com.gs.collections.api.block.predicate.Predicate<? super T>... predicates)
public static <T> Predicates<T> and(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> predicates)
public static <T> Predicates<T> and(com.gs.collections.api.block.predicate.Predicate<? super T> predicate1, com.gs.collections.api.block.predicate.Predicate<? super T> predicate2)
public static <T> Predicates<T> and(com.gs.collections.api.block.predicate.Predicate<? super T>... predicates)
public static <T> Predicates<T> not(com.gs.collections.api.block.predicate.Predicate<T> predicate)
public Predicates<T> not()
public static <T> Predicates<T> neither(com.gs.collections.api.block.predicate.Predicate<? super T> operation1, com.gs.collections.api.block.predicate.Predicate<? super T> operation2)
public static <T> Predicates<T> noneOf(com.gs.collections.api.block.predicate.Predicate<? super T>... operations)
public static <T> Predicates<T> noneOf(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> operations)
public static Predicates<java.lang.Object> equal(java.lang.Object object)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> betweenInclusive(T from, T to)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> betweenExclusive(T from, T to)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> betweenInclusiveFrom(T from, T to)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> betweenInclusiveTo(T from, T to)
public static Predicates<java.lang.Object> in(java.lang.Iterable<?> iterable)
public static Predicates<java.lang.Object> in(java.lang.Object[] array)
public static <T> Predicates<T> attributeIn(com.gs.collections.api.block.function.Function<? super T,?> function, java.lang.Iterable<?> iterable)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeBetweenInclusive(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeBetweenExclusive(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeBetweenInclusiveFrom(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeBetweenInclusiveTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static Predicates<java.lang.Object> notIn(java.lang.Iterable<?> iterable)
public static Predicates<java.lang.Object> notIn(java.lang.Object[] array)
public static <T> Predicates<T> attributeNotIn(com.gs.collections.api.block.function.Function<? super T,?> function, java.lang.Iterable<?> iterable)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> lessThan(T object)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeLessThan(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> lessThanOrEqualTo(T object)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeLessThanOrEqualTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> greaterThan(T object)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeGreaterThan(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T extends java.lang.Comparable<? super T>> Predicates<T> greaterThanOrEqualTo(T object)
public static <T,V extends java.lang.Comparable<? super V>> Predicates<T> attributeGreaterThanOrEqualTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T,V> Predicates<T> attributePredicate(com.gs.collections.api.block.function.Function<? super T,? extends V> function, com.gs.collections.api.block.predicate.Predicate<? super V> predicate)
public static <T> Predicates<T> attributeEqual(com.gs.collections.api.block.function.Function<? super T,?> function, java.lang.Object object)
public static <T> Predicates<java.lang.Iterable<T>> anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T> Predicates<java.lang.Iterable<T>> allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T> Predicates<java.lang.Iterable<T>> noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,V> Predicates<T> attributeAnySatisfy(com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function, com.gs.collections.api.block.predicate.Predicate<? super V> predicate)
public static <T,V> Predicates<T> attributeAllSatisfy(com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function, com.gs.collections.api.block.predicate.Predicate<? super V> predicate)
public static Predicates<java.lang.Object> notEqual(java.lang.Object object)
public static <T> Predicates<T> ifTrue(com.gs.collections.api.block.function.Function<? super T,java.lang.Boolean> function)
public static <T> Predicates<T> ifFalse(com.gs.collections.api.block.function.Function<? super T,java.lang.Boolean> function)
public static <T> Predicates<T> attributeNotEqual(com.gs.collections.api.block.function.Function<? super T,?> function, java.lang.Object object)
public static Predicates<java.lang.Object> isNull()
public static <T> Predicates<T> attributeIsNull(com.gs.collections.api.block.function.Function<? super T,?> function)
public static Predicates<java.lang.Object> notNull()
public static <T> Predicates<T> attributeNotNull(com.gs.collections.api.block.function.Function<? super T,?> function)
public static Predicates<java.lang.Object> sameAs(java.lang.Object object)
public static Predicates<java.lang.Object> notSameAs(java.lang.Object object)
public static Predicates<java.lang.Object> instanceOf(java.lang.Class<?> clazz)
public static Predicates<java.lang.Object> assignableFrom(java.lang.Class<?> clazz)
public static Predicates<java.lang.Object> notInstanceOf(java.lang.Class<?> clazz)
public static Predicates<java.lang.Object> alwaysTrue()
public static Predicates<java.lang.Object> alwaysFalse()
public Predicates<T> and(com.gs.collections.api.block.predicate.Predicate<? super T> op)
public Predicates<T> or(com.gs.collections.api.block.predicate.Predicate<? super T> op)
public static Predicates<java.lang.Class<?>> subClass(java.lang.Class<?> aClass)
public static Predicates<java.lang.Class<?>> superClass(java.lang.Class<?> aClass)