Example usage for org.apache.commons.collections15 PredicateUtils equalPredicate

List of usage examples for org.apache.commons.collections15 PredicateUtils equalPredicate

Introduction

In this page you can find the example usage for org.apache.commons.collections15 PredicateUtils equalPredicate.

Prototype

public static <T> Predicate<T> equalPredicate(T value) 

Source Link

Document

Creates a Predicate that checks if the input object is equal to the specified object using equals().

Usage

From source file:org.springframework.jdbc.repo.impl.AbstractIdentifiedEntityRepo.java

@Override
public List<String> findEntitiesIdentifiers(String propName, Serializable propValue) {
    if (propValue == null) {
        throw new IllegalArgumentException("findEntitiesIdentifiers(" + propName + ") no value specified");
    }//from   w  ww.  jav a  2  s  . c  o m

    return findEntitiesIdentifiers(propName, PredicateUtils.equalPredicate(propValue));
}

From source file:org.springframework.jdbc.repo.impl.AbstractRawPropertiesRepoImpl.java

@Override
public List<E> findEntities(String propName, Serializable propValue,
        Transformer<Map<String, ?>, ? extends E> transformer) {
    if (propValue == null) {
        throw new IllegalArgumentException("findEntities(" + propName + ") no value");
    }/*from   w ww .  ja v a  2s . com*/

    if (transformer == null) {
        throw new IllegalArgumentException(
                "findEntities(" + getEntityClass().getSimpleName() + ")[" + propName + "] no transformer");
    }

    return findEntities(propName, PredicateUtils.equalPredicate(propValue), transformer);
}

From source file:org.springframework.jdbc.repo.impl.AbstractRawPropertiesRepoImpl.java

@Override
public List<String> findEntities(String propName, Serializable propValue) {
    if (propValue == null) {
        throw new IllegalArgumentException("findEntities(" + propName + ") no value");
    }//from w w  w. j av  a2s .  c  o  m

    return findEntities(propName, PredicateUtils.equalPredicate(propValue));
}