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