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

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

Introduction

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

Prototype

public static Predicate equalPredicate(Object 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.opencastproject.serviceregistry.impl.jmx.ServicesStatistics.java

/**
 * @see org.opencastproject.serviceregistry.impl.jmx.ServicesStatisticsMXBean#getErrorServiceCount()
 *//*from  w ww .ja va  2s  .  c  om*/
@Override
public int getErrorServiceCount() {
    return CollectionUtils.countMatches(services.values(), PredicateUtils.equalPredicate(ServiceState.ERROR));
}