public class Between extends ComparableValue
Modifier and Type | Field and Description |
---|---|
private java.lang.Comparable |
max |
private boolean |
maxInclusive |
private java.lang.Comparable |
min |
private boolean |
minInclusive |
Constructor and Description |
---|
Between(java.lang.String attributeName,
java.lang.Object min,
java.lang.Object max,
boolean minInclusive,
boolean maxInclusive)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private static AttributeType |
computeType(java.lang.String attributeName,
java.lang.Object min,
java.lang.Object max) |
protected boolean |
executeComparable(java.lang.Comparable attributeValue)
Execute this criteria for the given
Comparable attribute value |
protected boolean |
executeComparableString(java.lang.Comparable attributeValue)
Execute this criteria for the given
Comparable strin type attribute value |
java.lang.Comparable |
getMax()
Get the maximum value
|
java.lang.Comparable |
getMin()
Get the minimum value
|
boolean |
isMaxInclusive() |
boolean |
isMinInclusive() |
execute, getAttributeName, getType, luceneStringCompare
and, getExtractor, not, or
private final java.lang.Comparable min
private final java.lang.Comparable max
private final boolean minInclusive
private final boolean maxInclusive
public Between(java.lang.String attributeName, java.lang.Object min, java.lang.Object max, boolean minInclusive, boolean maxInclusive)
attributeName
- attribute namemin
- minimum value of rangemax
- maximum value of rangeminInclusive
- is minimum inclusive?maxInclusive
- is maximum inclusive?private static AttributeType computeType(java.lang.String attributeName, java.lang.Object min, java.lang.Object max)
public java.lang.Comparable getMin()
public java.lang.Comparable getMax()
public boolean isMinInclusive()
public boolean isMaxInclusive()
protected boolean executeComparable(java.lang.Comparable attributeValue)
Comparable
attribute valueexecuteComparable
in class ComparableValue
attributeValue
- Comparable attribute valueprotected boolean executeComparableString(java.lang.Comparable attributeValue)
Comparable
strin type attribute valueexecuteComparableString
in class ComparableValue
attributeValue
- Comparable attribute value