@Test public void contains() { Assert.assertFalse(TestUtils.ONE_TEN.contains(0L)); Assert.assertTrue(TestUtils.ONE_TEN.contains(1L)); Assert.assertTrue(TestUtils.ONE_TEN.contains(5L)); Assert.assertFalse(TestUtils.ONE_TEN.contains(10L)); Assert.assertFalse(TestUtils.ONE_TEN.contains(11L)); }
@Override public boolean contains(Long point) { return start <= point & end > point; }
LongRange implements Range<Long, LongContent> { @Override public boolean contains(Long point) { return start <= point & end > point; } }
LongRange implements Range<Long, LongContent> { @Override public boolean contains(Long point) { return start <= point & end > point; } LongRange(long start, long end); }
LongRange implements Range<Long, LongContent> { @Override public boolean contains(Long point) { return start <= point & end > point; } LongRange(long start, long end); @Override Long getStart(); @Override Long getEnd(); @Override boolean contains(Long point); LongContent length(); static LongRange of(long start, long end); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
LongRange implements Range<Long, LongContent> { @Override public boolean contains(Long point) { return start <= point & end > point; } LongRange(long start, long end); @Override Long getStart(); @Override Long getEnd(); @Override boolean contains(Long point); LongContent length(); static LongRange of(long start, long end); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }