| Package | Description |
|---|---|
| com.gs.collections.impl.block.factory |
This package contains factory implementations for
Function, Predicate, SerializableComparator and Procedure. |
| 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>> |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicates<T> |
Predicates.adapt(com.gs.collections.api.block.predicate.Predicate<T> predicate) |
static <T> Predicates<java.lang.Iterable<T>> |
Predicates.allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static Predicates<java.lang.Object> |
Predicates.alwaysFalse() |
static Predicates<java.lang.Object> |
Predicates.alwaysTrue() |
static <T> Predicates<T> |
Predicates.and(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> predicates) |
static <T> Predicates<T> |
Predicates.and(com.gs.collections.api.block.predicate.Predicate<? super T>... predicates) |
Predicates<T> |
Predicates.and(com.gs.collections.api.block.predicate.Predicate<? super T> op) |
static <T> Predicates<T> |
Predicates.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>> |
Predicates.anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static Predicates<java.lang.Object> |
Predicates.assignableFrom(java.lang.Class<?> clazz) |
static <T,V> Predicates<T> |
Predicates.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> |
Predicates.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>> |
Predicates.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>> |
Predicates.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>> |
Predicates.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>> |
Predicates.attributeBetweenInclusiveTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V from,
V to) |
static <T> Predicates<T> |
Predicates.attributeEqual(com.gs.collections.api.block.function.Function<? super T,?> function,
java.lang.Object object) |
static <T,V extends java.lang.Comparable<? super V>> |
Predicates.attributeGreaterThan(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T,V extends java.lang.Comparable<? super V>> |
Predicates.attributeGreaterThanOrEqualTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T> Predicates<T> |
Predicates.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> |
IntegerPredicates.attributeIsEven(com.gs.collections.api.block.function.Function<T,java.lang.Integer> function) |
static <T> Predicates<T> |
LongPredicates.attributeIsEven(com.gs.collections.api.block.function.Function<T,java.lang.Long> function) |
static <T> Predicates<T> |
IntegerPredicates.attributeIsNegative(com.gs.collections.api.block.function.Function<T,java.lang.Integer> function) |
static <T> Predicates<T> |
LongPredicates.attributeIsNegative(com.gs.collections.api.block.function.Function<T,java.lang.Long> function) |
static <T> Predicates<T> |
Predicates.attributeIsNull(com.gs.collections.api.block.function.Function<? super T,?> function) |
static <T> Predicates<T> |
IntegerPredicates.attributeIsOdd(com.gs.collections.api.block.function.Function<T,java.lang.Integer> function) |
static <T> Predicates<T> |
LongPredicates.attributeIsOdd(com.gs.collections.api.block.function.Function<T,java.lang.Long> function) |
static <T> Predicates<T> |
IntegerPredicates.attributeIsPositive(com.gs.collections.api.block.function.Function<T,java.lang.Integer> function) |
static <T> Predicates<T> |
LongPredicates.attributeIsPositive(com.gs.collections.api.block.function.Function<T,java.lang.Long> function) |
static <T> Predicates<T> |
IntegerPredicates.attributeIsZero(com.gs.collections.api.block.function.Function<T,java.lang.Integer> function) |
static <T> Predicates<T> |
LongPredicates.attributeIsZero(com.gs.collections.api.block.function.Function<T,java.lang.Long> function) |
static <T,V extends java.lang.Comparable<? super V>> |
Predicates.attributeLessThan(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T,V extends java.lang.Comparable<? super V>> |
Predicates.attributeLessThanOrEqualTo(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
V object) |
static <T> Predicates<T> |
Predicates.attributeNotEqual(com.gs.collections.api.block.function.Function<? super T,?> function,
java.lang.Object object) |
static <T> Predicates<T> |
Predicates.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> |
Predicates.attributeNotNull(com.gs.collections.api.block.function.Function<? super T,?> function) |
static <T,V> Predicates<T> |
Predicates.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>> |
Predicates.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>> |
Predicates.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>> |
Predicates.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>> |
Predicates.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.String> |
StringPredicates.contains(char character)
Returns true if a char specified on the predicate is contained within a String passed to the the accept
method
|
static Predicates<java.lang.String> |
StringPredicates.contains(java.lang.String otherString)
Returns true if a String specified on the predicate is contained within a String passed to the the accept
method
|
static Predicates<java.lang.String> |
StringPredicates.empty() |
static Predicates<java.lang.String> |
StringPredicates.endsWith(java.lang.String substring)
Returns true if a String passed to the the accept method ends with the string specified on the predicate
|
static Predicates<java.lang.Object> |
Predicates.equal(java.lang.Object object)
Tests for equality.
|
static Predicates<java.lang.String> |
StringPredicates.equalsIgnoreCase(java.lang.String otherString) |
static Predicates<java.lang.String> |
StringPredicates.greaterThan(java.lang.String string) |
static <T extends java.lang.Comparable<? super T>> |
Predicates.greaterThan(T object) |
static Predicates<java.lang.String> |
StringPredicates.greaterThanOrEqualTo(java.lang.String string) |
static <T extends java.lang.Comparable<? super T>> |
Predicates.greaterThanOrEqualTo(T object) |
static Predicates<java.lang.String> |
StringPredicates.hasDigits() |
static Predicates<java.lang.String> |
StringPredicates.hasLetters() |
static Predicates<java.lang.String> |
StringPredicates.hasLettersAndDigits() |
static Predicates<java.lang.String> |
StringPredicates.hasLettersOrDigits() |
static Predicates<java.lang.String> |
StringPredicates.hasLowerCase() |
static Predicates<java.lang.String> |
StringPredicates.hasSpaces() |
static Predicates<java.lang.String> |
StringPredicates.hasUndefined() |
static Predicates<java.lang.String> |
StringPredicates.hasUpperCase() |
static <T> Predicates<T> |
Predicates.ifFalse(com.gs.collections.api.block.function.Function<? super T,java.lang.Boolean> function) |
static <T> Predicates<T> |
Predicates.ifTrue(com.gs.collections.api.block.function.Function<? super T,java.lang.Boolean> function) |
static Predicates<java.lang.Object> |
Predicates.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> |
Predicates.in(java.lang.Object[] array) |
static Predicates<java.lang.Object> |
Predicates.instanceOf(java.lang.Class<?> clazz) |
static Predicates<java.lang.String> |
StringPredicates.isAlpha() |
static Predicates<java.lang.String> |
StringPredicates.isAlphanumeric() |
static Predicates<java.lang.String> |
StringPredicates.isBlank() |
static Predicates<java.lang.Integer> |
IntegerPredicates.isEven() |
static Predicates<java.lang.Long> |
LongPredicates.isEven() |
static Predicates<java.lang.Integer> |
IntegerPredicates.isNegative() |
static Predicates<java.lang.Long> |
LongPredicates.isNegative() |
static Predicates<java.lang.Object> |
Predicates.isNull() |
static Predicates<java.lang.String> |
StringPredicates.isNumeric() |
static Predicates<java.lang.Integer> |
IntegerPredicates.isOdd() |
static Predicates<java.lang.Long> |
LongPredicates.isOdd() |
static Predicates<java.lang.Integer> |
IntegerPredicates.isPositive() |
static Predicates<java.lang.Long> |
LongPredicates.isPositive() |
static Predicates<java.lang.Integer> |
IntegerPredicates.isZero() |
static Predicates<java.lang.Long> |
LongPredicates.isZero() |
static Predicates<java.lang.String> |
StringPredicates.lessThan(java.lang.String string) |
static <T extends java.lang.Comparable<? super T>> |
Predicates.lessThan(T object) |
static Predicates<java.lang.String> |
StringPredicates.lessThanOrEqualTo(java.lang.String string) |
static <T extends java.lang.Comparable<? super T>> |
Predicates.lessThanOrEqualTo(T object) |
static Predicates<java.lang.String> |
StringPredicates.matches(java.lang.String regex) |
static <T> Predicates<T> |
Predicates.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> |
Predicates.noneOf(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> operations) |
static <T> Predicates<T> |
Predicates.noneOf(com.gs.collections.api.block.predicate.Predicate<? super T>... operations) |
static <T> Predicates<java.lang.Iterable<T>> |
Predicates.noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
Predicates<T> |
Predicates.not() |
static <T> Predicates<T> |
Predicates.not(com.gs.collections.api.block.predicate.Predicate<T> predicate) |
static Predicates<java.lang.String> |
StringPredicates.notBlank() |
static Predicates<java.lang.String> |
StringPredicates.notEmpty() |
static Predicates<java.lang.Object> |
Predicates.notEqual(java.lang.Object object) |
static Predicates<java.lang.Object> |
Predicates.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> |
Predicates.notIn(java.lang.Object[] array) |
static Predicates<java.lang.Object> |
Predicates.notInstanceOf(java.lang.Class<?> clazz) |
static Predicates<java.lang.Object> |
Predicates.notNull() |
static Predicates<java.lang.Object> |
Predicates.notSameAs(java.lang.Object object) |
static <T> Predicates<T> |
Predicates.or(java.lang.Iterable<? extends com.gs.collections.api.block.predicate.Predicate<? super T>> predicates) |
static <T> Predicates<T> |
Predicates.or(com.gs.collections.api.block.predicate.Predicate<? super T>... predicates) |
Predicates<T> |
Predicates.or(com.gs.collections.api.block.predicate.Predicate<? super T> op) |
static <T> Predicates<T> |
Predicates.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> |
Predicates.sameAs(java.lang.Object object) |
static Predicates<java.lang.String> |
StringPredicates.size(int size) |
static Predicates<java.lang.String> |
StringPredicates.startsWith(java.lang.String substring)
Returns true if a String passed to the the accept method starts with the string specified on the predicate
|
static Predicates<java.lang.Class<?>> |
Predicates.subClass(java.lang.Class<?> aClass) |
static Predicates<java.lang.Class<?>> |
Predicates.superClass(java.lang.Class<?> aClass) |