ENTITY
- the entity typeD
- the database typeV
- the field value typepublic interface ComparableFieldTrait<ENTITY,D,V extends Comparable<? super V>>
Integer
and not int
) and that implements Comparable
.Modifier and Type | Method and Description |
---|---|
default ComparableSpeedmentPredicate<ENTITY,D,V> |
between(V start,
V end)
Returns a
Predicate that will evaluate to
true , if and only if this Field is between
the given values (inclusive the start value but exclusive the end value). |
ComparableSpeedmentPredicate<ENTITY,D,V> |
between(V start,
V end,
Inclusion inclusion)
Returns a
Predicate that will evaluate to
true , if and only if this Field is between
the given values and taking the Inclusion parameter into account when
determining if either of the end points shall be included in the Field
range or not. |
Comparator<ENTITY> |
comparator()
Returns a
Comparator that will compare to this field using this
fields natural order. |
Comparator<ENTITY> |
comparatorNullFieldsFirst()
Returns a
Comparator that will compare to this field using this
fields natural order, null fields are sorted first. |
Comparator<ENTITY> |
comparatorNullFieldsLast()
Returns a
Comparator that will compare to this field using this
fields natural order, null fields are sorted last. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
equal(V value)
Returns a
Predicate that will evaluate to
true , if and only if this Field is equal to the given
value. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
greaterOrEqual(V value)
Returns a
Predicate that will evaluate to
true , if and only if this Field is greater than or equal
to the given value. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
greaterThan(V value)
Returns a
Predicate that will evaluate to
true , if and only if this Field is greater than
the given value. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
in(Set<V> values)
Returns a
Predicate that will evaluate to
true , if and only if this Field is in the given Set. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
in(V... values)
Returns a
Predicate that will evaluate to
true , if and only if this Field is in the set of given
values. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
lessOrEqual(V value)
Returns a
Predicate that will evaluate to
true , if and only if this Field is less than or equal
to the given value. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
lessThan(V value)
Returns a
Predicate that will evaluate to
true , if and only if this Field is less than the given
value. |
default ComparableSpeedmentPredicate<ENTITY,D,V> |
notBetween(V start,
V end)
Returns a
Predicate that will evaluate to
true , if and only if this Field is not between
the given values (inclusive the start value but exclusive the end value). |
ComparableSpeedmentPredicate<ENTITY,D,V> |
notBetween(V start,
V end,
Inclusion inclusion)
Returns a
Predicate that will evaluate to
true , if and only if this Field is not between
the given values and taking the Inclusion parameter into account when
determining if either of the end points shall be included in the Field
range or not. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
notEqual(V value)
Returns a
Predicate that will evaluate to
true , if and only if this Field is not equal to the
given value. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
notIn(Set<V> values)
Returns a
Predicate that will evaluate to
true , if and only if this Field is not in the given Set. |
ComparableSpeedmentPredicate<ENTITY,D,V> |
notIn(V... values)
Returns a
Predicate that will evaluate to
true , if and only if this Field is not in the set of
given values. |
Comparator<ENTITY> comparator()
Comparator
that will compare to this field using this
fields natural order.Comparator
that will compare to this field using this
fields natural orderNullPointerException
- if a field is nullComparator<ENTITY> comparatorNullFieldsFirst()
Comparator
that will compare to this field using this
fields natural order, null fields are sorted first.Comparator
that will compare to this field using this
fields natural order, null fields are sorted firstComparator<ENTITY> comparatorNullFieldsLast()
Comparator
that will compare to this field using this
fields natural order, null fields are sorted last.Comparator
that will compare to this field using this
fields natural order, null fields are sorted lastComparableSpeedmentPredicate<ENTITY,D,V> equal(V value)
Predicate
that will evaluate to
true
, if and only if this Field is equal to the given
value.value
- to comparetrue
, if and only if
this Field is equal to the given valueComparableSpeedmentPredicate<ENTITY,D,V> notEqual(V value)
Predicate
that will evaluate to
true
, if and only if this Field is not equal to the
given value.value
- to comparetrue
, if and only if
this Field is not equal to the given valueComparableSpeedmentPredicate<ENTITY,D,V> lessThan(V value)
Predicate
that will evaluate to
true
, if and only if this Field is less than the given
value.value
- to comparetrue
, if and only if
this Field is less than the given valueComparableSpeedmentPredicate<ENTITY,D,V> lessOrEqual(V value)
Predicate
that will evaluate to
true
, if and only if this Field is less than or equal
to the given value.value
- to comparetrue
, if and only if
this Field is less than or equal to the given valueComparableSpeedmentPredicate<ENTITY,D,V> greaterThan(V value)
Predicate
that will evaluate to
true
, if and only if this Field is greater than
the given value.value
- to comparetrue
, if and only if
this Field is greater than the given valueComparableSpeedmentPredicate<ENTITY,D,V> greaterOrEqual(V value)
Predicate
that will evaluate to
true
, if and only if this Field is greater than or equal
to the given value.value
- to comparetrue
, if and only if
this Field is greater than or equal to the given valuedefault ComparableSpeedmentPredicate<ENTITY,D,V> between(V start, V end)
Predicate
that will evaluate to
true
, if and only if this Field is between
the given values (inclusive the start value but exclusive the end value).
N.B. if the start value is greater than the end value, then the returned
Predicate will always evaluate to false
start
- to compare as a start valueend
- to compare as an end valuetrue
, if and only if
this Field is between the given values (inclusive the start
value but exclusive the end value)ComparableSpeedmentPredicate<ENTITY,D,V> between(V start, V end, Inclusion inclusion)
Predicate
that will evaluate to
true
, if and only if this Field is between
the given values and taking the Inclusion parameter into account when
determining if either of the end points shall be included in the Field
range or not.
N.B. if the start value is greater than the end value, then the returned
Predicate will always evaluate to false
start
- to compare as a start valueend
- to compare as an end valueinclusion
- determines if the end points is included in the Field
range.true
, if and only if
this Field is between the given values and taking the Inclusion
parameter into account when determining if either of the end points shall
be included in the Field range or notdefault ComparableSpeedmentPredicate<ENTITY,D,V> notBetween(V start, V end)
Predicate
that will evaluate to
true
, if and only if this Field is not between
the given values (inclusive the start value but exclusive the end value).
N.B. if the start value is greater than the end value, then the returned
Predicate will always evaluate to true
start
- to compare as a start valueend
- to compare as an end valuetrue
, if and only if
this Field is not between the given values (inclusive the start
value but exclusive the end value)ComparableSpeedmentPredicate<ENTITY,D,V> notBetween(V start, V end, Inclusion inclusion)
Predicate
that will evaluate to
true
, if and only if this Field is not between
the given values and taking the Inclusion parameter into account when
determining if either of the end points shall be included in the Field
range or not.
N.B. if the start value is greater than the end value, then the returned
Predicate will always evaluate to true
start
- to compare as a start valueend
- to compare as an end valueinclusion
- determines if the end points is included in the Field
range.true
, if and only if
this Field is not between the given values and taking the
Inclusion parameter into account when determining if either of the end
points shall be included in the Field range or notComparableSpeedmentPredicate<ENTITY,D,V> in(V... values)
Predicate
that will evaluate to
true
, if and only if this Field is in the set of given
values.
N.B. if no values are given, then the returned Predicate will always
evaluate to false
values
- the set of values to match towards this Fieldtrue
, if and only if
this Field is in the set of given valuesComparableSpeedmentPredicate<ENTITY,D,V> in(Set<V> values)
Predicate
that will evaluate to
true
, if and only if this Field is in the given Set.
N.B. if the Set is empty, then the returned Predicate will always
evaluate to false
values
- the set of values to match towards this Fieldtrue
, if and only if
this Field is in the given SetComparableSpeedmentPredicate<ENTITY,D,V> notIn(V... values)
Predicate
that will evaluate to
true
, if and only if this Field is not in the set of
given values.
N.B. if no values are given, then the returned Predicate will always
evaluate to true
values
- the set of values to match towards this Fieldtrue
, if and only if
this Field is not in the set of given valuesComparableSpeedmentPredicate<ENTITY,D,V> notIn(Set<V> values)
Predicate
that will evaluate to
true
, if and only if this Field is not in the given Set.
N.B. if the Set is empty, then the returned Predicate will always
evaluate to true
values
- the set of values to match towards this Fieldtrue
, if and only if
this Field is not in the given SetCopyright © 2016 Speedment, Inc.. All rights reserved.