public abstract class Predicates<T> extends Object implements org.eclipse.collections.api.block.predicate.Predicate<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
Predicates.AllSatisfy<T> |
static class |
Predicates.AnySatisfy<T> |
static class |
Predicates.NoneSatisfy<T> |
| Constructor and Description |
|---|
Predicates() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicates<T> |
adapt(org.eclipse.collections.api.block.predicate.Predicate<T> predicate) |
static <T> Predicates<Iterable<T>> |
allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static Predicates<Object> |
alwaysFalse() |
static Predicates<Object> |
alwaysTrue() |
static <T> Predicates<T> |
and(Iterable<? extends org.eclipse.collections.api.block.predicate.Predicate<? super T>> predicates) |
static <T> Predicates<T> |
and(org.eclipse.collections.api.block.predicate.Predicate<? super T>... predicates) |
Predicates<T> |
and(org.eclipse.collections.api.block.predicate.Predicate<? super T> op) |
static <T> Predicates<T> |
and(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate1,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate2) |
static <T> Predicates<Iterable<T>> |
anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
static Predicates<Object> |
assignableFrom(Class<?> clazz) |
static <T,V> Predicates<T> |
attributeAllSatisfy(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
static <T,V> Predicates<T> |
attributeAnySatisfy(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
static <T,V extends Comparable<? super V>> |
attributeBetweenExclusive(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T,V extends Comparable<? super V>> |
attributeBetweenInclusive(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T,V extends Comparable<? super V>> |
attributeBetweenInclusiveFrom(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T,V extends Comparable<? super V>> |
attributeBetweenInclusiveTo(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T> Predicates<T> |
attributeEqual(org.eclipse.collections.api.block.function.Function<? super T,?> function,
Object object) |
static <T,V extends Comparable<? super V>> |
attributeGreaterThan(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T,V extends Comparable<? super V>> |
attributeGreaterThanOrEqualTo(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T> Predicates<T> |
attributeIn(org.eclipse.collections.api.block.function.Function<? super T,?> function,
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(org.eclipse.collections.api.block.function.Function<? super T,?> function) |
static <T,V extends Comparable<? super V>> |
attributeLessThan(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T,V extends Comparable<? super V>> |
attributeLessThanOrEqualTo(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T,V> Predicates<T> |
attributeNoneSatisfy(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
static <T> Predicates<T> |
attributeNotEqual(org.eclipse.collections.api.block.function.Function<? super T,?> function,
Object object) |
static <T> Predicates<T> |
attributeNotIn(org.eclipse.collections.api.block.function.Function<? super T,?> function,
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(org.eclipse.collections.api.block.function.Function<? super T,?> function) |
static <T,V> Predicates<T> |
attributePredicate(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
static <T extends 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 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 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 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 <P,T> org.eclipse.collections.api.block.predicate.Predicate<T> |
bind(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> org.eclipse.collections.api.block.predicate.Predicate<T> |
cast(org.eclipse.collections.api.block.predicate.Predicate<T> predicate)
Allows a Java 8 lambda or method reference to be used in a method taking a predicate without requiring an actual cast.
|
static Predicates<Object> |
equal(Object object)
Tests for equality.
|
static <T extends Comparable<? super T>> |
greaterThan(T object) |
static <T extends Comparable<? super T>> |
greaterThanOrEqualTo(T object) |
static <T> Predicates<T> |
ifFalse(org.eclipse.collections.api.block.function.Function<? super T,Boolean> function) |
static <T> Predicates<T> |
ifTrue(org.eclipse.collections.api.block.function.Function<? super T,Boolean> function) |
static Predicates<Object> |
in(Iterable<?> iterable)
Creates a predicate which returns true if an object passed to accept method is contained in the iterable.
|
static Predicates<Object> |
in(Object... array) |
static Predicates<Object> |
instanceOf(Class<?> clazz) |
static Predicates<Object> |
isNull() |
static <T extends Comparable<? super T>> |
lessThan(T object) |
static <T extends Comparable<? super T>> |
lessThanOrEqualTo(T object) |
static <T> Predicates<T> |
neither(org.eclipse.collections.api.block.predicate.Predicate<? super T> operation1,
org.eclipse.collections.api.block.predicate.Predicate<? super T> operation2) |
static <T> Predicates<T> |
noneOf(Iterable<? extends org.eclipse.collections.api.block.predicate.Predicate<? super T>> operations) |
static <T> Predicates<T> |
noneOf(org.eclipse.collections.api.block.predicate.Predicate<? super T>... operations) |
static <T> Predicates<Iterable<T>> |
noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
Predicates<T> |
not() |
static <T> Predicates<T> |
not(org.eclipse.collections.api.block.predicate.Predicate<T> predicate) |
static Predicates<Object> |
notEqual(Object object) |
static Predicates<Object> |
notIn(Iterable<?> iterable)
Creates a predicate which returns true if an object passed to accept method is not contained in
the iterable.
|
static Predicates<Object> |
notIn(Object... array) |
static Predicates<Object> |
notInstanceOf(Class<?> clazz) |
static Predicates<Object> |
notNull() |
static Predicates<Object> |
notSameAs(Object object) |
static <T> Predicates<T> |
or(Iterable<? extends org.eclipse.collections.api.block.predicate.Predicate<? super T>> predicates) |
static <T> Predicates<T> |
or(org.eclipse.collections.api.block.predicate.Predicate<? super T>... predicates) |
Predicates<T> |
or(org.eclipse.collections.api.block.predicate.Predicate<? super T> op) |
static <T> Predicates<T> |
or(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate1,
org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate2) |
static Predicates<Object> |
sameAs(Object object) |
static Predicates<Class<?>> |
subClass(Class<?> aClass) |
static Predicates<Class<?>> |
superClass(Class<?> aClass) |
static <T> org.eclipse.collections.api.block.predicate.Predicate<T> |
synchronizedEach(org.eclipse.collections.api.block.predicate.Predicate<T> predicate) |
static <T> org.eclipse.collections.api.block.predicate.Predicate<T> |
throwing(ThrowingPredicate<T> throwingPredicate) |
public static <T> Predicates<T> adapt(org.eclipse.collections.api.block.predicate.Predicate<T> predicate)
public static <T> org.eclipse.collections.api.block.predicate.Predicate<T> cast(org.eclipse.collections.api.block.predicate.Predicate<T> predicate)
public static <T> org.eclipse.collections.api.block.predicate.Predicate<T> throwing(ThrowingPredicate<T> throwingPredicate)
public static <P,T> org.eclipse.collections.api.block.predicate.Predicate<T> bind(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> org.eclipse.collections.api.block.predicate.Predicate<T> synchronizedEach(org.eclipse.collections.api.block.predicate.Predicate<T> predicate)
public static <T> Predicates<T> or(Iterable<? extends org.eclipse.collections.api.block.predicate.Predicate<? super T>> predicates)
public static <T> Predicates<T> or(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate1, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate2)
public static <T> Predicates<T> or(org.eclipse.collections.api.block.predicate.Predicate<? super T>... predicates)
public static <T> Predicates<T> and(Iterable<? extends org.eclipse.collections.api.block.predicate.Predicate<? super T>> predicates)
public static <T> Predicates<T> and(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate1, org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate2)
public static <T> Predicates<T> and(org.eclipse.collections.api.block.predicate.Predicate<? super T>... predicates)
public static <T> Predicates<T> not(org.eclipse.collections.api.block.predicate.Predicate<T> predicate)
public Predicates<T> not()
public static <T> Predicates<T> neither(org.eclipse.collections.api.block.predicate.Predicate<? super T> operation1, org.eclipse.collections.api.block.predicate.Predicate<? super T> operation2)
public static <T> Predicates<T> noneOf(org.eclipse.collections.api.block.predicate.Predicate<? super T>... operations)
public static <T> Predicates<T> noneOf(Iterable<? extends org.eclipse.collections.api.block.predicate.Predicate<? super T>> operations)
public static Predicates<Object> equal(Object object)
public static <T extends Comparable<? super T>> Predicates<T> betweenInclusive(T from, T to)
public static <T extends Comparable<? super T>> Predicates<T> betweenExclusive(T from, T to)
public static <T extends Comparable<? super T>> Predicates<T> betweenInclusiveFrom(T from, T to)
public static <T extends Comparable<? super T>> Predicates<T> betweenInclusiveTo(T from, T to)
public static Predicates<Object> in(Iterable<?> iterable)
public static Predicates<Object> in(Object... array)
public static <T> Predicates<T> attributeIn(org.eclipse.collections.api.block.function.Function<? super T,?> function, Iterable<?> iterable)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeBetweenInclusive(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeBetweenExclusive(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeBetweenInclusiveFrom(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeBetweenInclusiveTo(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V from, V to)
public static Predicates<Object> notIn(Iterable<?> iterable)
public static Predicates<Object> notIn(Object... array)
public static <T> Predicates<T> attributeNotIn(org.eclipse.collections.api.block.function.Function<? super T,?> function, Iterable<?> iterable)
public static <T extends Comparable<? super T>> Predicates<T> lessThan(T object)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeLessThan(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T extends Comparable<? super T>> Predicates<T> lessThanOrEqualTo(T object)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeLessThanOrEqualTo(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T extends Comparable<? super T>> Predicates<T> greaterThan(T object)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeGreaterThan(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T extends Comparable<? super T>> Predicates<T> greaterThanOrEqualTo(T object)
public static <T,V extends Comparable<? super V>> Predicates<T> attributeGreaterThanOrEqualTo(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, V object)
public static <T,V> Predicates<T> attributePredicate(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
public static <T> Predicates<T> attributeEqual(org.eclipse.collections.api.block.function.Function<? super T,?> function, Object object)
public static <T> Predicates<Iterable<T>> anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T> Predicates<Iterable<T>> allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T> Predicates<Iterable<T>> noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,V> Predicates<T> attributeAnySatisfy(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
public static <T,V> Predicates<T> attributeAllSatisfy(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
public static <T,V> Predicates<T> attributeNoneSatisfy(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
public static Predicates<Object> notEqual(Object object)
public static <T> Predicates<T> ifTrue(org.eclipse.collections.api.block.function.Function<? super T,Boolean> function)
public static <T> Predicates<T> ifFalse(org.eclipse.collections.api.block.function.Function<? super T,Boolean> function)
public static <T> Predicates<T> attributeNotEqual(org.eclipse.collections.api.block.function.Function<? super T,?> function, Object object)
public static Predicates<Object> isNull()
public static <T> Predicates<T> attributeIsNull(org.eclipse.collections.api.block.function.Function<? super T,?> function)
public static Predicates<Object> notNull()
public static <T> Predicates<T> attributeNotNull(org.eclipse.collections.api.block.function.Function<? super T,?> function)
public static Predicates<Object> sameAs(Object object)
public static Predicates<Object> notSameAs(Object object)
public static Predicates<Object> instanceOf(Class<?> clazz)
public static Predicates<Object> assignableFrom(Class<?> clazz)
public static Predicates<Object> notInstanceOf(Class<?> clazz)
public static Predicates<Object> alwaysTrue()
public static Predicates<Object> alwaysFalse()
public Predicates<T> and(org.eclipse.collections.api.block.predicate.Predicate<? super T> op)
public Predicates<T> or(org.eclipse.collections.api.block.predicate.Predicate<? super T> op)
public static Predicates<Class<?>> subClass(Class<?> aClass)
public static Predicates<Class<?>> superClass(Class<?> aClass)
Copyright © 2004–2018. All rights reserved.