Package ru.curs.celesta.dbutils.filter
Class Range
- java.lang.Object
-
- ru.curs.celesta.dbutils.filter.AbstractFilter
-
- ru.curs.celesta.dbutils.filter.Range
-
public final class Range extends AbstractFilter
Filter as a range of values from..to.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filterEquals(AbstractFilter f)
Comparesthis
filter to an other one.Object
getValueFrom()
Returns a from value.Object
getValueTo()
Returns a to value.void
setValues(Object valueFrom, Object valueTo)
Sets from and to values.String
toString()
-
-
-
Method Detail
-
getValueFrom
public Object getValueFrom()
Returns a from value.- Returns:
-
getValueTo
public Object getValueTo()
Returns a to value.- Returns:
-
setValues
public void setValues(Object valueFrom, Object valueTo)
Sets from and to values.- Parameters:
valueFrom
- beginning of the range (inclusive)valueTo
- end of the range (inclusive)
-
filterEquals
public boolean filterEquals(AbstractFilter f)
Description copied from class:AbstractFilter
Comparesthis
filter to an other one.- Specified by:
filterEquals
in classAbstractFilter
- Parameters:
f
- other filter- Returns:
true
if filter equal otherwise -false
-
-