|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.filters.InclusionFilter
A filters that tests the inclusion (or non-inclusion) of the tested object in a set of accepted values.
| Field Summary | |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
InclusionFilter(InclusionComparisonOperator op,
java.lang.Object[] list)
Creates new InclusionComparator |
|
| Method Summary | |
boolean |
accept(java.lang.Object o)
Tells whether the given object 'passes' the filter or not. |
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)
Overloads the 'dummy' implementation in Object, so that it returns true only if the passed in parameter is a filter of the same kind as this one, and accepts exactly the same objects. |
java.lang.Object[] |
getAcceptedValues()
This method enables access to the list of values that are admissible through the filter. |
ComparisonOperator |
getOperator()
This method enables access to the comparison operator used in this filter. |
int |
hashCode()
Overloads the 'dummy' implementation in Object so that it fulfills the implicit hashCode contract, i.e. same filters have the same hashCode and different ones have different hashCodes. |
java.lang.String |
toString()
Gives an SQL-like string representation of this filter. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
| Constructor Detail |
public InclusionFilter(InclusionComparisonOperator op,
java.lang.Object[] list)
throws java.lang.IllegalArgumentException
op - The inclusion operator to be used.list - The set of accepted values.
java.lang.IllegalArgumentException - In case one of the passed in parameters is null, which is not
wanted here.| Method Detail |
public boolean accept(java.lang.Object o)
accept in interface Filtero - The object you want to 'test'.
public java.lang.Object[] getAcceptedValues()
public ComparisonOperator getOperator()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
o - The object to be compared to this one.
public int hashCode()
public java.lang.Object clone()
Filter
clone in interface FilterObject.clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||