Code example for Comparator

Methods: compare

0
	@Test 
	@SuppressWarnings("javadoc") 
	public void test02_NPE() { 
		Comparator<Interval<Integer>> c = new IntervalComparatorLowerUpper<Integer>(false, true);
		try { 
			c.compare(null, Interval.singleElement(10));
			fail(); 
		} catch (NullPointerException e) {
			// success 
		} 
	} 
}