|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.filter.StringFilter
public class StringFilter
Defines a filter on a String.
| Nested Class Summary | |
|---|---|
static class |
StringFilter.Operator
Operators for compare operations. |
| Constructor Summary | |
|---|---|
StringFilter(StringFilter.Operator newOperator,
String constValue)
Constructor with a property and an operator. |
|
StringFilter(String newOperator,
String constValue)
Constructor with a property and an operator. |
|
| Method Summary | |
|---|---|
boolean |
complies(Object value)
Checks if the argument complies with the condition of the filter. |
String |
getConstValue()
Returns the constant value any string is compared with. |
StringFilter.Operator |
getOperator()
Returns the operator for compare operations. |
String |
getOperatorName()
Returns the operator for compare operations. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringFilter(String newOperator,
String constValue)
newOperator - Operator to use.constValue - Value to compare with.
public StringFilter(StringFilter.Operator newOperator,
String constValue)
newOperator - Operator to use.constValue - Value to compare with.| Method Detail |
|---|
public final boolean complies(Object value)
complies in interface Filtervalue - Object to be tested for compliance
public final String toString()
toString in class Objectpublic final StringFilter.Operator getOperator()
public final String getOperatorName()
public final String getConstValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||