|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.filter.ListFilter
org.fuin.utils4j.filter.AndFilter
public class AndFilter
Defines a filter on a list of sub filters 'and's them all together.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_AND_STR
Used to create a String representation of this filter. |
| Fields inherited from class org.fuin.utils4j.filter.ListFilter |
|---|
DEFAULT_CLOSE_BRACKET, DEFAULT_OPEN_BRACKET |
| Constructor Summary | |
|---|---|
AndFilter()
Default constructor with no arguments. |
|
AndFilter(Filter firstFilter,
Filter secondFilter)
Constructor with two terms. |
|
| Method Summary | |
|---|---|
boolean |
complies(java.lang.Object obj)
Checks if the argument complies with the condition of the filter. |
java.lang.String |
getAndStr()
Returns the phrase representing this type of filter. |
void |
setAndStr(java.lang.String newAndStr)
Set the phrase representing this type of filter A NULL argument will set the default DEFAULT_AND_STR. |
java.lang.String |
toString()
|
| Methods inherited from class org.fuin.utils4j.filter.ListFilter |
|---|
addFilter, getCloseBracket, getFilterList, getOpenBracket, removeFilter, setCloseBracket, setFilterList, setOpenBracket, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_AND_STR
| Constructor Detail |
|---|
public AndFilter()
public AndFilter(Filter firstFilter,
Filter secondFilter)
firstFilter - First term to be and'edsecondFilter - Second term to be and'ed| Method Detail |
|---|
public final boolean complies(java.lang.Object obj)
obj - Object to be tested for compliance
public final java.lang.String getAndStr()
public final void setAndStr(java.lang.String newAndStr)
DEFAULT_AND_STR.
newAndStr - Name of the filter (default "and")public final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||