Constructor and Description |
---|
Conditions() |
Modifier and Type | Method and Description |
---|---|
static <S,D> Condition<S,D> |
and(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 AND condition2 apply. |
static Condition<?,?> |
isNotNull()
Returns a condition that applies when the mapping source is not
null . |
static Condition<?,?> |
isNull()
Returns a condition that applies when the mapping source is
null . |
static Condition<?,?> |
isType(Class<?> type)
Returns a condition that applies when the mapping source is of the type
type . |
static <S,D> Condition<S,D> |
not(Condition<S,D> condition)
Returns a condition that does NOT apply when the given
condition applies. |
static <S,D> Condition<S,D> |
or(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 OR condition2 apply. |
public static <S,D> Condition<S,D> and(Condition<S,D> condition1, Condition<S,D> condition2)
condition1
AND condition2
apply.IllegalArgumentException
- if condition1
or condition2
is nullpublic static Condition<?,?> isNotNull()
null
.public static Condition<?,?> isNull()
null
.public static Condition<?,?> isType(Class<?> type)
type
.public static <S,D> Condition<S,D> not(Condition<S,D> condition)
condition
applies.IllegalArgumentException
- if condition
is nullpublic static <S,D> Condition<S,D> or(Condition<S,D> condition1, Condition<S,D> condition2)
condition1
OR condition2
apply.IllegalArgumentException
- if condition1
or condition2
is nullCopyright © 2011–2024. All rights reserved.