@Test public void testEnumerate() { LongSpace space = _b.including(Range.closedOpen(1L, 5L)).build(); assertThat(space.enumerate(), equalTo(ImmutableSortedSet.of(1L, 2L, 3L, 4L))); }
@Override public @Nonnull Set<Long> enumerate() { return ImmutableRangeSet.copyOf(_rangeset).asSet(DiscreteDomain.longs()); }
LongSpace extends NumberSpace<Long, LongSpace, LongSpace.Builder> { @Override public @Nonnull Set<Long> enumerate() { return ImmutableRangeSet.copyOf(_rangeset).asSet(DiscreteDomain.longs()); } }
LongSpace extends NumberSpace<Long, LongSpace, LongSpace.Builder> { @Override public @Nonnull Set<Long> enumerate() { return ImmutableRangeSet.copyOf(_rangeset).asSet(DiscreteDomain.longs()); } protected  LongSpace(RangeSet<Long> rangeset); }
LongSpace extends NumberSpace<Long, LongSpace, LongSpace.Builder> { @Override public @Nonnull Set<Long> enumerate() { return ImmutableRangeSet.copyOf(_rangeset).asSet(DiscreteDomain.longs()); } 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> { @Override public @Nonnull Set<Long> enumerate() { return ImmutableRangeSet.copyOf(_rangeset).asSet(DiscreteDomain.longs()); } 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; }