Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.block.factory

public abstract Class Predicates2<T, P>

extends Object
implements Predicate2<T, P>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.predicate.Predicate2, java.io.Serializable, java.util.function.BiPredicate
Known Direct Subclasses
org.eclipse.collections.impl.block.factory.Predicates2.Or, org.eclipse.collections.impl.block.factory.Predicates2.And, org.eclipse.collections.impl.block.factory.Predicates2.AttributePredicates2, org.eclipse.collections.impl.block.factory.Predicates2.Not, org.eclipse.collections.impl.block.factory.Predicates2.Equal, org.eclipse.collections.impl.block.factory.Predicates2.In, org.eclipse.collections.impl.block.factory.Predicates2.NotIn, org.eclipse.collections.impl.block.factory.Predicates2.LessThan, org.eclipse.collections.impl.block.factory.Predicates2.LessThanOrEqual, org.eclipse.collections.impl.block.factory.Predicates2.GreaterThan, org.eclipse.collections.impl.block.factory.Predicates2.GreaterThanOrEqual, org.eclipse.collections.impl.block.factory.Predicates2.NotEqual, org.eclipse.collections.impl.block.factory.Predicates2.IsInstanceOf, org.eclipse.collections.impl.block.factory.Predicates2.NotInstanceOf, org.eclipse.collections.impl.block.factory.Predicates2.IsIdentical, org.eclipse.collections.impl.block.factory.Predicates2.NotIdentitical, org.eclipse.collections.impl.block.factory.Predicates2.IsNull, org.eclipse.collections.impl.block.factory.Predicates2.NotNull, org.eclipse.collections.impl.block.factory.Predicates2.AlwaysTrue, org.eclipse.collections.impl.block.factory.Predicates2.AlwaysFalse, org.eclipse.collections.impl.block.factory.StringPredicates2.ContainsString, org.eclipse.collections.impl.block.factory.StringPredicates2.NotContainsString, org.eclipse.collections.impl.block.factory.StringPredicates2.StartsWith, org.eclipse.collections.impl.block.factory.StringPredicates2.NotStartsWith, org.eclipse.collections.impl.block.factory.StringPredicates2.EndsWith, org.eclipse.collections.impl.block.factory.StringPredicates2.NotEndsWith, org.eclipse.collections.impl.block.factory.StringPredicates2.EqualsIgnoreCase, org.eclipse.collections.impl.block.factory.StringPredicates2.NotEqualsIgnoreCase, org.eclipse.collections.impl.block.factory.StringPredicates2.MatchesRegex
Imports
org.eclipse.collections.api.block.function.Function, .Function3, org.eclipse.collections.api.block.predicate.Predicate2, org.eclipse.collections.impl.block.predicate.checked.CheckedPredicate2, .ThrowingPredicate2, org.eclipse.collections.impl.utility.Iterate

Predicates2 is a static version of Predicates. All of its values are statically initialized, except for and, or, not and all the attribute combination methods. Predicates2 can only work with one parameter, so it is limited to handling only conditions of a simple nature.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final Predicates2<Object, Object>
private static final Predicates2<Object, Object>
private static final Predicates2<Object, Object>
private static final Predicates2<?, ?>
private static final Predicates2<?, ?>
private static final Predicates2<Object, Iterable<?>>
private static final Predicates2<Object, Class<?>>
private static final Predicates2<Object, Object>
private static final Predicates2<Object, Object>
private static final Predicates2<?, ?>
private static final Predicates2<?, ?>
private static final Predicates2<Object, Object>
private static final Predicates2<Object, Object>
private static final Predicates2<Object, Iterable<?>>
private static final Predicates2<Object, Class<?>>
private static final Predicates2<Object, Object>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Predicates2<Object, Object>
public static Predicates2<Object, Object>
public Predicates2<T, P>
and(Predicate2<? super T, ? super P> op)

public static <T, P> Predicates2<T, P>
and(Predicate2<? super T, ? super P> left, Predicate2<? super T, ? super P> right)

public static <T> Predicates2<T, Object>
attributeEqual(Function<? super T, ?> function)

public static <T, P extends Comparable<? super P>> Predicates2<T, P>
attributeGreaterThan(Function<? super T, ? extends P> function)

public static <T, P extends Comparable<? super P>> Predicates2<T, P>
attributeGreaterThanOrEqualTo(Function<? super T, ? extends P> function)

public static <T> Predicates2<T, Iterable<?>>
attributeIn(Function<T, ?> function)

public static <T, P extends Comparable<? super P>> Predicates2<T, P>
attributeLessThan(Function<? super T, ? extends P> function)

public static <T, P extends Comparable<? super P>> Predicates2<T, P>
attributeLessThanOrEqualTo(Function<? super T, ? extends P> function)

public static <T> Predicates2<T, Object>
attributeNotEqual(Function<? super T, ?> function)

public static <T> Predicates2<T, Iterable<?>>
attributeNotIn(Function<T, ?> function)

public static Predicates2<Object, Object>
public static <T extends Comparable<T>> Predicates2<T, T>
public static <T extends Comparable<T>> Predicates2<T, T>
public static Predicates2<Object, Iterable<?>>
in()

public static Predicates2<Object, Class<?>>
public static Predicates2<Object, Object>
public static <T extends Comparable<T>> Predicates2<T, T>
public static <T extends Comparable<T>> Predicates2<T, T>
public static <T, P> Predicates2<T, P>
not(Predicate2<T, P> predicate)

public static Predicates2<Object, Object>
public static Predicates2<Object, Iterable<?>>
public static Predicates2<Object, Class<?>>
public static Predicates2<Object, Object>
public static Predicates2<Object, Object>
public Predicates2<T, P>
or(Predicate2<? super T, ? super P> op)

public static <T, P> Predicates2<T, P>
or(Predicate2<? super T, ? super P> left, Predicate2<? super T, ? super P> right)

public static Predicates2<Object, Object>
public static <T, P> Predicate2<T, P>
throwing(ThrowingPredicate2<T, P> throwingPredicate2)

Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Predicate2 that will throw a RuntimeException, wrapping the checked exception that is the cause.

public static <T1, T2> Predicate2<T1, T2>
throwing(ThrowingPredicate2<T1, T2> throwingPredicate2, Function3<T1, T2, ? super Throwable, ? extends RuntimeException> rethrow)

Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Procedure2 that will throw a user specified RuntimeException based on the provided function.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait