T
- the type of the object the specification applies to.S
- the type of the selector.public interface SpecificationPicker<T,S extends BaseSelector>
SpecificationBuilder
DSL to pick the specification that will apply to
the current selection.Modifier and Type | Method and Description |
---|---|
<V extends Comparable<? super V>> |
between(V leftValue,
V rightValue)
Picks a between specification that will be satisfied if the current selection is strictly
greater than and strictly less than to the specified value.
|
<V extends Comparable<? super V>> |
between(V leftValue,
V rightValue,
boolean leftInclusive,
boolean rightInclusive)
Picks a between specification that will be satisfied if the current selection is (strictly or
not) greater than and (strictly or not) less than to the specified value.
|
StringOptionPicker<T,S> |
equalTo(String value)
Picks a
String -specific equality specification that will be satisfied if the current
selection equals to the specified value. |
<V> OperatorPicker<T,S> |
equalTo(V value)
Picks a general purpose equality specification that will be satisfied if the current selection
equals to the specified value.
|
<V extends Comparable<? super V>> |
greaterThan(V value)
Picks a greater than specification that will be satisfied if the current selection is strictly
greater than the specified value.
|
<V extends Comparable<? super V>> |
greaterThanOrEqualTo(V value)
Picks a greater than or equal to specification that will be satisfied if the current selection
is greater than or equal to the specified value.
|
<V extends Comparable<? super V>> |
lessThan(V value)
Picks a less than specification that will be satisfied if the current selection is strictly
less than the specified value.
|
<V extends Comparable<? super V>> |
lessThanOrEqualTo(V value)
Picks a less than or equal to specification that will be satisfied if the current selection is
less than or equal to the specified value.
|
StringOptionPicker<T,S> |
matching(String pattern)
Picks a
String -specific matching specification that will be satisfied if the current
selection matches the specified pattern. |
SpecificationPicker<T,S> |
not()
Negates the specification that will be picked.
|
OperatorPicker<T,S> |
satisfying(Specification<T> specification)
Picks a custom specification.
|
SpecificationPicker<T,S> not()
OperatorPicker<T,S> satisfying(Specification<T> specification)
specification
- the custom specification.StringOptionPicker<T,S> matching(String pattern)
String
-specific matching specification that will be satisfied if the current
selection matches the specified pattern. A pattern can contain: pattern
- the pattern to match.StringOptionPicker<T,S> equalTo(String value)
String
-specific equality specification that will be satisfied if the current
selection equals to the specified value.value
- the value to be equal to.<V> OperatorPicker<T,S> equalTo(V value)
V
- the type of the value.value
- the value to be equal to.<V extends Comparable<? super V>> OperatorPicker<T,S> greaterThan(V value)
V
- the type of the value.value
- the value to be greater than.<V extends Comparable<? super V>> OperatorPicker<T,S> greaterThanOrEqualTo(V value)
V
- the type of the value.value
- the value to be greater than or equal to.<V extends Comparable<? super V>> OperatorPicker<T,S> lessThan(V value)
V
- the type of the value.value
- the value to be less than.<V extends Comparable<? super V>> OperatorPicker<T,S> lessThanOrEqualTo(V value)
V
- the type of the value.value
- the value to be less than or equal to.<V extends Comparable<? super V>> OperatorPicker<T,S> between(V leftValue, V rightValue)
V
- the type of the value.leftValue
- the value to be greater than.rightValue
- the value to be less than.<V extends Comparable<? super V>> OperatorPicker<T,S> between(V leftValue, V rightValue, boolean leftInclusive, boolean rightInclusive)
V
- the type of the value.leftValue
- the value to be greater than (or equal to if leftInclusive is true).rightValue
- the value to be less than (or equal to if rightInclusive is true).leftInclusive
- if true, the leftValue argument will be included in the interval,
otherwise it will be excluded.rightInclusive
- if true, the rightValue argument will be included in the interval,
otherwise it will be excluded.Copyright © 2013-2018–2019 SeedStack. All rights reserved.