@Test public void testConversionToRanges() { assertThat(LongSpace.of(1L).getRanges(), equalTo(ImmutableSet.of(Range.closedOpen(1L, 2L)))); assertThat( LONGSPACE1.getRanges(), equalTo(ImmutableSet.of(Range.closedOpen(1L, LONGSPACE1.greatest() + 1L)))); assertThat(EMPTY.getRanges(), equalTo(ImmutableSet.of())); }
public static @Nonnull LongSpace of(long value) { return builder().including(Range.singleton(value)).build(); }
LongSpace extends NumberSpace<Long, LongSpace, LongSpace.Builder> { public static @Nonnull LongSpace of(long value) { return builder().including(Range.singleton(value)).build(); } }
LongSpace extends NumberSpace<Long, LongSpace, LongSpace.Builder> { public static @Nonnull LongSpace of(long value) { return builder().including(Range.singleton(value)).build(); } protected  LongSpace(RangeSet<Long> rangeset); }
LongSpace extends NumberSpace<Long, LongSpace, LongSpace.Builder> { public static @Nonnull LongSpace of(long value) { return builder().including(Range.singleton(value)).build(); } protected  LongSpace(RangeSet<Long> rangeset); static @Nonnull Builder builder(); static @Nonnull LongSpace of(long value); static @Nonnull LongSpace of(Range<Long> range); static @Nonnull LongSpace of(RangeSet<Long> rangeSet); static @Nonnull LongSpace parse(String s); static @Nonnull LongSpace unionOf(Iterable<Range<Long>> ranges); @SafeVarargs @SuppressWarnings("varargs") static @Nonnull LongSpace unionOf(Range<Long>... ranges); @Override @Nonnull Set<Long> enumerate(); @Nonnull LongStream longStream(); }
LongSpace extends NumberSpace<Long, LongSpace, LongSpace.Builder> { public static @Nonnull LongSpace of(long value) { return builder().including(Range.singleton(value)).build(); } protected  LongSpace(RangeSet<Long> rangeset); static @Nonnull Builder builder(); static @Nonnull LongSpace of(long value); static @Nonnull LongSpace of(Range<Long> range); static @Nonnull LongSpace of(RangeSet<Long> rangeSet); static @Nonnull LongSpace parse(String s); static @Nonnull LongSpace unionOf(Iterable<Range<Long>> ranges); @SafeVarargs @SuppressWarnings("varargs") static @Nonnull LongSpace unionOf(Range<Long>... ranges); @Override @Nonnull Set<Long> enumerate(); @Nonnull LongStream longStream(); static final LongSpace EMPTY; }