public class Conditions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Condition<java.lang.Object> |
TRUE
Deprecated.
use
alwaysTrue() instead |
Modifier and Type | Method and Description |
---|---|
static <T> Condition<T> |
alwaysFalse() |
static <T> Condition<T> |
alwaysTrue() |
static <T> Condition<T> |
and(Condition<? super T> c1,
Condition<? super T> c2) |
static <T> Condition<T> |
and2(Condition<? super T> c1,
Condition<? super T> c2) |
static Condition<java.lang.Class<?>> |
assignableTo(java.lang.Class<?> clazz) |
static <T> Condition<T> |
cached(Condition<? super T> c) |
static <A,B> Condition<A> |
compose(Function<? super A,B> fun,
Condition<? super B> condition) |
static <T> Condition<T> |
constant(boolean value) |
static <T> Condition<T> |
equalTo(java.lang.Object option) |
static <T> Condition<T> |
instanceOf(java.lang.Class<?>... clazz) |
static <T> Condition<T> |
instanceOf(java.lang.Class<?> clazz) |
static <T> Condition<T> |
is(T option) |
static <T> Condition<T> |
not(Condition<? super T> c) |
static <T> Condition<T> |
notEqualTo(java.lang.Object option) |
static <T> Condition<T> |
notInstanceOf(java.lang.Class<?> clazz) |
static <T> Condition<T> |
notNull() |
static <T> Condition<T> |
oneOf(java.util.Collection<? extends T> options) |
static <T> Condition<T> |
oneOf(T... options) |
static <T> Condition<T> |
or(Condition<? super T> c1,
Condition<? super T> c2) |
static <T> Condition<T> |
or2(Condition<? super T> c1,
Condition<? super T> c2) |
@Deprecated public static final Condition<java.lang.Object> TRUE
alwaysTrue()
insteadpublic static <T> Condition<T> alwaysTrue()
public static <T> Condition<T> alwaysFalse()
public static <T> Condition<T> notNull()
public static <T> Condition<T> constant(boolean value)
public static <T> Condition<T> instanceOf(java.lang.Class<?> clazz)
public static <T> Condition<T> notInstanceOf(java.lang.Class<?> clazz)
public static Condition<java.lang.Class<?>> assignableTo(java.lang.Class<?> clazz)
public static <T> Condition<T> instanceOf(java.lang.Class<?>... clazz)
public static <T> Condition<T> is(T option)
public static <T> Condition<T> equalTo(java.lang.Object option)
public static <T> Condition<T> notEqualTo(java.lang.Object option)
public static <T> Condition<T> oneOf(T... options)
public static <T> Condition<T> oneOf(java.util.Collection<? extends T> options)
public static <A,B> Condition<A> compose(Function<? super A,B> fun, Condition<? super B> condition)