@Test public void testGreaterThan() { IntegerProperty i = integerProperty("i", 1); assertThat(greaterThan(0).evaluate(i), is(true)); assertThat(greaterThan(1).evaluate(i), is(false)); assertThat(greaterThan(2).evaluate(i), is(false)); }
public static WhenCondition<Integer> greaterThan(final Integer number) { return new WhenCondition<Integer>() { public boolean evaluate(Integer value) { return number != null && value != null && value.intValue() > number.intValue(); } }; }
WhenConditions { public static WhenCondition<Integer> greaterThan(final Integer number) { return new WhenCondition<Integer>() { public boolean evaluate(Integer value) { return number != null && value != null && value.intValue() > number.intValue(); } }; } }
WhenConditions { public static WhenCondition<Integer> greaterThan(final Integer number) { return new WhenCondition<Integer>() { public boolean evaluate(Integer value) { return number != null && value != null && value.intValue() > number.intValue(); } }; }  }
WhenConditions { public static WhenCondition<Integer> greaterThan(final Integer number) { return new WhenCondition<Integer>() { public boolean evaluate(Integer value) { return number != null && value != null && value.intValue() > number.intValue(); } }; }  static WhenCondition<Object> notNull(); static WhenCondition<Object> nullValue(); static WhenCondition<Integer> greaterThan(final Integer number); static WhenCondition<Integer> lessThan(final Integer number); static WhenCondition<P> or(final P... values); }
WhenConditions { public static WhenCondition<Integer> greaterThan(final Integer number) { return new WhenCondition<Integer>() { public boolean evaluate(Integer value) { return number != null && value != null && value.intValue() > number.intValue(); } }; }  static WhenCondition<Object> notNull(); static WhenCondition<Object> nullValue(); static WhenCondition<Integer> greaterThan(final Integer number); static WhenCondition<Integer> lessThan(final Integer number); static WhenCondition<P> or(final P... values);  }