Top Description Fields Constructors Methods
net.sf.ehcache.search.expression

public Class Between

extends ComparableValue
Class Inheritance
Imports
net.sf.ehcache.search.SearchException, net.sf.ehcache.search.attribute.AttributeType

Range criteria
Author
teck

Field Summary

Modifier and TypeField and Description
private final Comparable<T>
private final boolean
private final Comparable<T>
private final boolean

Constructor Summary

AccessConstructor and Description
public
Between(String
attribute name
attributeName
,
Object
minimum value of range
min
,
Object
maximum value of range
max
,
boolean
is minimum inclusive?
minInclusive
,
boolean
is maximum inclusive?
maxInclusive
)

Constructor

Method Summary

Modifier and TypeMethod and Description
private static AttributeType
computeType(String attributeName, Object min, Object max)

protected boolean
executeComparable(Comparable<T>
Comparable attribute value
attributeValue
)

Implements abstract net.sf.ehcache.search.expression.ComparableValue.executeComparable.

Execute this criteria for the given Comparable attribute value
protected boolean
executeComparableString(Comparable<T>
Comparable attribute value
attributeValue
)

Implements abstract net.sf.ehcache.search.expression.ComparableValue.executeComparableString.

Execute this criteria for the given Comparable strin type attribute value
public Comparable<T>

Returns:

max value
getMax
()

Get the maximum value

public Comparable<T>

Returns:

min value
getMin
()

Get the minimum value

public boolean

Returns:

true if the max is included in range
isMaxInclusive
()

public boolean

Returns:

true if the min is included in range
isMinInclusive
()

Inherited from net.sf.ehcache.search.expression.ComparableValue:
executegetAttributeNamegetAttributesgetTypeluceneStringCompare

Field Detail

maxback to summary
private final Comparable<T> max
maxInclusiveback to summary
private final boolean maxInclusive
minback to summary
private final Comparable<T> min
minInclusiveback to summary
private final boolean minInclusive

Constructor Detail

Betweenback to summary
public Between(String attributeName, Object min, Object max, boolean minInclusive, boolean maxInclusive)

Constructor

Parameters
attributeName:String

attribute name

min:Object

minimum value of range

max:Object

maximum value of range

minInclusive:boolean

is minimum inclusive?

maxInclusive:boolean

is maximum inclusive?

Method Detail

computeTypeback to summary
private static AttributeType computeType(String attributeName, Object min, Object max)
executeComparableback to summary
protected boolean executeComparable(Comparable<T> attributeValue)

Implements abstract net.sf.ehcache.search.expression.ComparableValue.executeComparable.

Doc from net.sf.ehcache.search.expression.ComparableValue.executeComparable.

Execute this criteria for the given Comparable attribute value

Parameters
attributeValue:Comparable<T>

Comparable attribute value

Returns:boolean

true if criteria is met

Annotations
@Override
executeComparableStringback to summary
protected boolean executeComparableString(Comparable<T> attributeValue)

Implements abstract net.sf.ehcache.search.expression.ComparableValue.executeComparableString.

Doc from net.sf.ehcache.search.expression.ComparableValue.executeComparableString.

Execute this criteria for the given Comparable strin type attribute value

Parameters
attributeValue:Comparable<T>

Comparable attribute value

Returns:boolean

true if criteria is met

Annotations
@Override
getMaxback to summary
public Comparable<T> getMax()

Get the maximum value

Returns:Comparable<T>

max value

getMinback to summary
public Comparable<T> getMin()

Get the minimum value

Returns:Comparable<T>

min value

isMaxInclusiveback to summary
public boolean isMaxInclusive()
Returns:boolean

true if the max is included in range

isMinInclusiveback to summary
public boolean isMinInclusive()
Returns:boolean

true if the min is included in range