List of usage examples for org.apache.commons.collections PredicateUtils equalPredicate
public static Predicate equalPredicate(Object value)
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)); }