CriteriaMatcherInMemory { private boolean matchesGreaterThan(T infoObject, GreaterThanPredicate predicate) { Object dataValue = extractValue(predicate.getPropertyPath(), infoObject); return matchesGreaterThan(dataValue, predicate.getValue().getValue()); } CriteriaMatcherInMemory(); QueryByCriteria getCriteria(); void setCriteria(QueryByCriteria criteria); Collection<T> findMatching(Collection<T> all); boolean matches(T infoObject); static boolean matchesEqual(Object dataValue, Object criteriaValue); static boolean matchesLessThan(Object dataValue, Object criteriaValue); static boolean matchesGreaterThan(Object dataValue, Object criteriaValue); boolean matchesLike(Object dataValue, Object criteriaValue); boolean matchesLikeCachingPattern(final String str, final String expr); static boolean matchesLike(final String str, final String expr);  }
@Test public void testMatchesGreaterThan() { assertEquals(false, CriteriaMatcherInMemory.matchesGreaterThan("a", "a")); assertEquals(false, CriteriaMatcherInMemory.matchesGreaterThan("a", "b")); assertEquals(true, CriteriaMatcherInMemory.matchesGreaterThan("b", "a")); }