java.io.Serializable
, java.util.function.BiPredicate<T,P>
, Predicate2<T,P>
public abstract class Predicates2<T,P> extends java.lang.Object implements Predicate2<T,P>
Constructor | Description |
---|---|
Predicates2() |
Modifier and Type | Method | Description |
---|---|---|
static Predicates2<java.lang.Object,java.lang.Object> |
alwaysFalse() |
|
static Predicates2<java.lang.Object,java.lang.Object> |
alwaysTrue() |
|
Predicates2<T,P> |
and(Predicate2<? super T,? super P> op) |
|
static <T,P> Predicates2<T,P> |
and(Predicate2<? super T,? super P> left,
Predicate2<? super T,? super P> right) |
|
static <T> Predicates2<T,java.lang.Object> |
attributeEqual(Function<T,?> function) |
|
static <T,P extends java.lang.Comparable<? super P>> |
attributeGreaterThan(Function<T,P> function) |
|
static <T,P extends java.lang.Comparable<? super P>> |
attributeGreaterThanOrEqualTo(Function<T,P> function) |
|
static <T> Predicates2<T,java.lang.Iterable<?>> |
attributeIn(Function<T,?> function) |
|
static <T,P extends java.lang.Comparable<? super P>> |
attributeLessThan(Function<T,P> function) |
|
static <T,P extends java.lang.Comparable<? super P>> |
attributeLessThanOrEqualTo(Function<T,P> function) |
|
static <T> Predicates2<T,java.lang.Object> |
attributeNotEqual(Function<T,?> function) |
|
static <T> Predicates2<T,java.lang.Iterable<?>> |
attributeNotIn(Function<T,?> function) |
|
static Predicates2<java.lang.Object,java.lang.Object> |
equal() |
|
static <T extends java.lang.Comparable<T>> |
greaterThan() |
|
static <T extends java.lang.Comparable<T>> |
greaterThanOrEqualTo() |
|
static Predicates2<java.lang.Object,java.lang.Iterable<?>> |
in() |
|
static Predicates2<java.lang.Object,java.lang.Class<?>> |
instanceOf() |
|
static Predicates2<java.lang.Object,java.lang.Object> |
isNull() |
|
static <T extends java.lang.Comparable<T>> |
lessThan() |
|
static <T extends java.lang.Comparable<T>> |
lessThanOrEqualTo() |
|
static <T,P> Predicates2<T,P> |
not(Predicate2<T,P> predicate) |
|
static Predicates2<java.lang.Object,java.lang.Object> |
notEqual() |
|
static Predicates2<java.lang.Object,java.lang.Iterable<?>> |
notIn() |
|
static Predicates2<java.lang.Object,java.lang.Class<?>> |
notInstanceOf() |
|
static Predicates2<java.lang.Object,java.lang.Object> |
notNull() |
|
static Predicates2<java.lang.Object,java.lang.Object> |
notSameAs() |
|
Predicates2<T,P> |
or(Predicate2<? super T,? super P> op) |
|
static <T,P> Predicates2<T,P> |
or(Predicate2<? super T,? super P> left,
Predicate2<? super T,? super P> right) |
|
static Predicates2<java.lang.Object,java.lang.Object> |
sameAs() |
|
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.
|
static <T1,T2> Predicate2<T1,T2> |
throwing(ThrowingPredicate2<T1,T2> throwingPredicate2,
Function3<T1,T2,? super java.lang.Throwable,? extends java.lang.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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, test
public Predicates2<T,P> and(Predicate2<? super T,? super P> op)
public Predicates2<T,P> or(Predicate2<? super T,? super P> op)
public static <T,P> Predicate2<T,P> throwing(ThrowingPredicate2<T,P> throwingPredicate2)
public static <T1,T2> Predicate2<T1,T2> throwing(ThrowingPredicate2<T1,T2> throwingPredicate2, Function3<T1,T2,? super java.lang.Throwable,? extends java.lang.RuntimeException> rethrow)
public static <T,P> Predicates2<T,P> not(Predicate2<T,P> predicate)
public static <T,P> Predicates2<T,P> or(Predicate2<? super T,? super P> left, Predicate2<? super T,? super P> right)
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,java.lang.Iterable<?>> attributeIn(Function<T,?> function)
public static <T> Predicates2<T,java.lang.Iterable<?>> attributeNotIn(Function<T,?> function)
public static Predicates2<java.lang.Object,java.lang.Object> alwaysTrue()
public static Predicates2<java.lang.Object,java.lang.Object> alwaysFalse()
public static Predicates2<java.lang.Object,java.lang.Object> isNull()
public static Predicates2<java.lang.Object,java.lang.Object> notNull()
public static Predicates2<java.lang.Object,java.lang.Object> equal()
public static Predicates2<java.lang.Object,java.lang.Object> notEqual()
public static Predicates2<java.lang.Object,java.lang.Iterable<?>> in()
public static Predicates2<java.lang.Object,java.lang.Iterable<?>> notIn()
public static <T extends java.lang.Comparable<T>> Predicates2<T,T> lessThan()
public static <T extends java.lang.Comparable<T>> Predicates2<T,T> lessThanOrEqualTo()
public static <T extends java.lang.Comparable<T>> Predicates2<T,T> greaterThan()
public static Predicates2<java.lang.Object,java.lang.Object> sameAs()
public static Predicates2<java.lang.Object,java.lang.Object> notSameAs()
public static Predicates2<java.lang.Object,java.lang.Class<?>> instanceOf()
public static Predicates2<java.lang.Object,java.lang.Class<?>> notInstanceOf()
public static <T extends java.lang.Comparable<T>> Predicates2<T,T> greaterThanOrEqualTo()
public static <T> Predicates2<T,java.lang.Object> attributeNotEqual(Function<T,?> function)
public static <T,P extends java.lang.Comparable<? super P>> Predicates2<T,P> attributeLessThan(Function<T,P> function)
public static <T,P extends java.lang.Comparable<? super P>> Predicates2<T,P> attributeLessThanOrEqualTo(Function<T,P> function)
public static <T,P extends java.lang.Comparable<? super P>> Predicates2<T,P> attributeGreaterThan(Function<T,P> function)
public static <T,P extends java.lang.Comparable<? super P>> Predicates2<T,P> attributeGreaterThanOrEqualTo(Function<T,P> function)
public static <T> Predicates2<T,java.lang.Object> attributeEqual(Function<T,?> function)
Copyright © 2004–2018. All rights reserved.