@Test public void shouldStartAtOffset() throws Exception { generator = new SequentialLongGenerator(2L); Long generatedValue = generator.next(); assertThat(generatedValue, is(2L)); }
@Override public Long next() { return value.getAndAdd(1L); }
SequentialLongGenerator implements Generator<Long> { @Override public Long next() { return value.getAndAdd(1L); } }
SequentialLongGenerator implements Generator<Long> { @Override public Long next() { return value.getAndAdd(1L); } SequentialLongGenerator(long startAt);  SequentialLongGenerator(); }
SequentialLongGenerator implements Generator<Long> { @Override public Long next() { return value.getAndAdd(1L); } SequentialLongGenerator(long startAt);  SequentialLongGenerator(); @Override Long next(); }
SequentialLongGenerator implements Generator<Long> { @Override public Long next() { return value.getAndAdd(1L); } SequentialLongGenerator(long startAt);  SequentialLongGenerator(); @Override Long next();  }