Package com.easydesk.om.comparator
Class StartsWithPredicate
java.lang.Object
com.easydesk.om.comparator.StartsWithPredicate
- All Implemented Interfaces:
Serializable,org.apache.commons.collections4.Predicate<String>
public class StartsWithPredicate
extends Object
implements org.apache.commons.collections4.Predicate<String>, Serializable
Returns only strings that start with a specific string! Good for filtering through a long list of paramerters and
only getting some back.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStartsWithPredicate(String startsWith) Creates a new StartsWithPredicate object. -
Method Summary
-
Constructor Details
-
StartsWithPredicate
Creates a new StartsWithPredicate object.- Parameters:
startsWith- DOCUMENT ME!
-
-
Method Details
-
evaluate
Takes in the input object, and call's it's toString method. Then checks if it starts with the value.- Specified by:
evaluatein interfaceorg.apache.commons.collections4.Predicate<String>
-