public final class Predicates extends Object
| Modifier and Type | Method and Description |
|---|---|
static ValuePredicate<String> |
containsString()
Returns
ContainsString predicate. |
static ValuePredicate<Calendar> |
dateRange(int lower,
int upper)
Returns
CalendarRange predicate with date scaled. |
static ValuePredicate<BigDecimal> |
decimalRange(BigDecimal lower,
BigDecimal upper)
Returns
FloatRange predicate. |
static ValuePredicate<Object> |
equals()
Returns
Equals predicate. |
static ValuePredicate<Object> |
equalTo(Object value)
Returns a predicate that accepts iff actual value is equalt to the specified value.
|
static ValuePredicate<Number> |
floatRange(double lower,
double upper)
Returns
FloatRange predicate. |
static ValuePredicate<Number> |
integerRange(long lower,
long upper)
Returns
IntegerRange predicate. |
static ValuePredicate<Object> |
isNull()
Returns
IsNull predicate. |
static <T> ValuePredicate<T> |
not(ValuePredicate<T> predicate)
Returns
Not predicate. |
static ValuePredicate<Calendar> |
period(Calendar begin,
Calendar end)
Returns
Period predicate. |
static ValuePredicate<Calendar> |
timeRange(int lower,
int upper)
Returns
CalendarRange predicate with second scaled. |
public static ValuePredicate<Object> equalTo(Object value)
value - targetpublic static <T> ValuePredicate<T> not(ValuePredicate<T> predicate)
Not predicate.T - type of predicatepredicate - the predicate to negateIllegalArgumentException - if some parameters were nullpublic static ValuePredicate<Object> equals()
Equals predicate.public static ValuePredicate<Object> isNull()
IsNull predicate.public static ValuePredicate<Number> floatRange(double lower, double upper)
FloatRange predicate.lower - lower boundsupper - upper boundspublic static ValuePredicate<Number> integerRange(long lower, long upper)
IntegerRange predicate.lower - lower boundsupper - upper boundspublic static ValuePredicate<BigDecimal> decimalRange(BigDecimal lower, BigDecimal upper)
FloatRange predicate.lower - lower boundsupper - upper boundsIllegalArgumentException - if some parameters were nullpublic static ValuePredicate<Calendar> dateRange(int lower, int upper)
CalendarRange predicate with date scaled.lower - lower boundsupper - upper boundspublic static ValuePredicate<Calendar> timeRange(int lower, int upper)
CalendarRange predicate with second scaled.lower - lower boundsupper - upper boundspublic static ValuePredicate<Calendar> period(Calendar begin, Calendar end)
Period predicate.begin - start timeend - finish timepublic static ValuePredicate<String> containsString()
ContainsString predicate.Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.