|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.filters.IntervalFilter
This filter enables to perform an AND between two OrderFilters. Therefore it models an interval of values. This class should be overriden to provide a stronger typing. No accessor methods are provided here so that the implementing classes can provide a typed method.
Field Summary | |
static java.lang.String |
LOWER_FILTER_PROPERTY
The property that is used to signal changes of the lower filter. |
(package private) static long |
serialVersionUID
|
static java.lang.String |
UPPER_FILTER_PROPERTY
The property that is used to signal changes of the upper filter. |
Constructor Summary | |
IntervalFilter(OrderFilter lowerFilter,
OrderFilter upperFilter)
Creates a new instance of IntervalFilter |
Method Summary | |
boolean |
accept(java.lang.Object obj)
This is the actual filtering method. |
java.lang.Object |
clone()
This forces override of the Object class clone method. it makes a deep copy so a change in a subfilter does not affect the cloned version. |
boolean |
equals(java.lang.Object o)
|
protected OrderFilter |
getLowerFilterInternal()
|
protected OrderFilter |
getUpperFilterInternal()
|
int |
hashCode()
|
protected void |
setLowerFilter(OrderFilter filter)
|
protected void |
setUpperFilter(OrderFilter filter)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
static final long serialVersionUID
public static final java.lang.String LOWER_FILTER_PROPERTY
public static final java.lang.String UPPER_FILTER_PROPERTY
Constructor Detail |
public IntervalFilter(OrderFilter lowerFilter, OrderFilter upperFilter)
lowerFilter
- the lower filter for the interval.upperFilter
- the upper filter for the interval.Method Detail |
protected void setLowerFilter(OrderFilter filter)
filter
- a filter to restrict the current interval.protected OrderFilter getLowerFilterInternal()
protected void setUpperFilter(OrderFilter filter)
filter
- a filter to restrict the current interval.protected OrderFilter getUpperFilterInternal()
public boolean accept(java.lang.Object obj)
accept
in interface Filter
obj
- the Object to filter.
public java.lang.String toString()
Object.toString()
public int hashCode()
Object.hashCode()
public boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)
public java.lang.Object clone()
Filter
clone
in interface Filter
Object.clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |