List of usage examples for org.apache.commons.collections Predicate interface-usage
From source file com.phoenixst.collections.IdentityPredicate.java
/**
* A <code>Predicate</code> which simply tests the {@link #evaluate
* evaluate( object )} argument for reference equality with a
* specified object.
*
* <P>This is mostly equivalent to the class of the same name in
From source file com.sworddance.util.NotNullKeyValuePredicate.java
/**
* Make sure the evaluated object is not null.
* If the object is a {@link Reference} the object is dereferenced and if the object is a Map.Entry then
* make sure that the key and the value held by the entry are also not null.
* @author patmoore
*
From source file com.phoenixst.collections.EqualPredicate.java
/**
* A <code>Predicate</code> which simply tests the {@link #evaluate
* evaluate( object )} argument for equality with a specified object.
*
* <P>This is mostly equivalent to the class of the same name in
* Jakarta Commons-Collections 3.0, except that it exposes the test
From source file org.talend.dq.indicators.graph.DirectionDisplayPredicate.java
/** * DOC scorreia class global comment. Detailled comment */ public final class DirectionDisplayPredicate implements Predicate { protected boolean show_d;
From source file org.beanfuse.collection.predicates.ValidNumScopePredicate.java
/**
* ?
*
* @author chaostone
*
*/
From source file org.beanfuse.collection.predicates.SingleWordStringPredicate.java
public class SingleWordStringPredicate implements Predicate { public boolean evaluate(final Object str) { return (str instanceof String) && (((String) str).indexOf(SeqStringUtil.DELIMITER) == -1); }
From source file com.phoenixst.plexus.TraverserPredicate.java
/**
* A general interface for <code>Predicates</code> for traversals
* that can be piecewise defined. These objects can be used by:
*
* <UL>
* <LI>{@link Graph#degree(Object,Predicate) Graph.degree( node, Predicate )}
From source file org.beanfuse.model.predicates.IdNotInPredicate.java
public class IdNotInPredicate implements Predicate { private final Set idSet; public IdNotInPredicate(Collection ids) { idSet = new HashSet(ids);
From source file org.beanfuse.collection.predicates.NotEmptyStringPredicate.java
public class NotEmptyStringPredicate implements Predicate { public static final NotEmptyStringPredicate INSTANCE = new NotEmptyStringPredicate(); /** * @see org.apache.commons.collections.Predicate#evaluate(java.lang.Object) */
From source file io.neba.core.util.MatchedBundlesPredicate.java
/**
* {@link #evaluate(Object)} returns <code>false</code> if the bundle matches to
* signal
* {@link org.apache.commons.collections.CollectionUtils#filter(java.util.Collection, Predicate)}
* to remove the element it.
*