List of usage examples for org.apache.commons.collections Predicate interface-usage
From source file org.beangle.commons.collection.predicates.InStrPredicate.java
public class InStrPredicate implements Predicate { private final String str; public InStrPredicate(final String str) { this.str = str;
From source file org.beangle.commons.collection.predicates.NotZeroNumberPredicate.java
public class NotZeroNumberPredicate implements Predicate { /** * @see org.apache.commons.collections.Predicate#evaluate(java.lang.Object) */ public boolean evaluate(final Object value) {
From source file org.beangle.commons.collection.predicates.NumRangePredicate.java
/** * ? * * @author chaostone */ public class NumRangePredicate implements Predicate {
From source file org.beangle.commons.collection.predicates.CollectionHasUpto1ElementPredicate.java
public class CollectionHasUpto1ElementPredicate implements Predicate { public boolean evaluate(final Object object) { boolean success = true; if (object instanceof Collection<?>) { success = ((Collection<?>) object).size() < 2;
From source file org.beangle.commons.collection.predicates.SingleWordStringPredicate.java
public class SingleWordStringPredicate implements Predicate { public boolean evaluate(final Object str) { return (str instanceof String) && (((String) str).indexOf(StrUtils.DELIMITER) == -1); }
From source file org.beangle.model.predicates.EmptyKeyPredicate.java
public class EmptyKeyPredicate implements Predicate { public boolean evaluate(final Object value) { boolean success = false; if (null != value) { if (value instanceof String) {
From source file org.beangle.commons.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 org.beangle.commons.collection.predicates.ContainsPredicate.java
public class ContainsPredicate implements Predicate { private final Collection<?> objs; public ContainsPredicate(Collection<?> objs) { super();
From source file org.beangle.model.predicates.ValidEntityPredicate.java
/** * ? * * @author chaostone */ public class ValidEntityPredicate implements Predicate {
From source file com.googelcode.jpractices.common.SalaryHighPredicate.java
/**
* Copyright 2009 @ jPractices v 1.0
* @SVN URL : http://jpractices.googlecode.com
* @author Ganesh Gowtham
* @Homepage : http://ganesh.gowtham.googlepages.com
* @description This Predicate is responsible in selecting the salary greater than iValue