org.jjoost.util.filters
Class AcceptIfNonEmptyString<E>
java.lang.Object
org.jjoost.util.filters.AcceptIfNonEmptyString<E>
- All Implemented Interfaces:
- java.io.Serializable, Filter<E>
public class AcceptIfNonEmptyString<E>
- extends java.lang.Object
- implements Filter<E>
A Filter accepting any Object that is not null, and whose toString() method returns something that is neither null, nor of zero length
- Author:
- b.elliottsmith
- See Also:
- Serialized Form
|
Method Summary |
boolean |
accept(E test)
Returns true if the Filter accepts the parameter and false otherwise |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AcceptIfNonEmptyString
public AcceptIfNonEmptyString()
accept
public boolean accept(E test)
- Description copied from interface:
Filter
- Returns
true if the Filter accepts the parameter and false otherwise
- Specified by:
accept in interface Filter<E>
- Parameters:
test - value to test
- Returns:
true if the filter accepts test; false otherwise
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object