RangeGeometries { public static <N extends Number & Comparable<? super N>> Rectangle openClosed(final N lower, final N upper) { checkNotNull(lower); checkNotNull(upper); return range(Range.openClosed(lower, upper)); } private  RangeGeometries(); static Point singleton(final N value); static Rectangle closed(final N lower, final N upper); static Rectangle closedOpen(final N lower, final N upper); static Rectangle openClosed(final N lower, final N upper); static Rectangle open(final N lower, final N upper); static Rectangle range(final Range<N> range);  }
@Test(expected=NullPointerException.class) public void testOpenClosedNullLower() { openClosed(null, 42L); }
@Test(expected=NullPointerException.class) public void testOpenClosedNullUpper() { openClosed(24L, null); }
@Test public void testOpenClosed() { assertEquals(Geometries.rectangle(25.0d, 0.0d, 42.0d, 1.0d), openClosed(24L, 42L)); }