Color extends Magnitude<Color> { @Override public boolean isLessThan(final Color value) { return color < (value).color; } Color(final int color); int intValue(); @Override boolean isEqualTo(final Color number); @Override boolean isLessThan(final Color value); String title(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); static final Color WHITE; static final Color BLACK; }
@Test public void testIsLessThan() throws Exception { assertTrue(Color.BLACK.isLessThan(Color.WHITE)); }