@Test public void test0() throws Exception { RandomAccessPattern p = new RandomAccessPattern(1); assertTrue(p.isEternal()); assertTrue(p.hasNext()); assertEquals(0, p.next()); assertTrue(p.isEternal()); assertTrue(p.hasNext()); assertEquals(0, p.next()); }
@Override public int next() { return rng.nextInt(upper); }
RandomAccessPattern extends AbstractEternalAccessPattern { @Override public int next() { return rng.nextInt(upper); } }
RandomAccessPattern extends AbstractEternalAccessPattern { @Override public int next() { return rng.nextInt(upper); } RandomAccessPattern(int _upper); }
RandomAccessPattern extends AbstractEternalAccessPattern { @Override public int next() { return rng.nextInt(upper); } RandomAccessPattern(int _upper); @Override int next(); }
RandomAccessPattern extends AbstractEternalAccessPattern { @Override public int next() { return rng.nextInt(upper); } RandomAccessPattern(int _upper); @Override int next();  }