@Test(expected = UnsupportedOperationException.class) public void testRemove() { Iterator<String> it = ResultIterator.create(ResultIterator.OFFSET_NONE, 1, Iterators.singletonIterator("value")); it.remove(); }
@Override public void remove() { throw new UnsupportedOperationException(); }
ResultIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException(); } }
ResultIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException(); } private  ResultIterator(long offset, long max, Iterator<T> iterator); }
ResultIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException(); } private  ResultIterator(long offset, long max, Iterator<T> iterator); static Iterator<T> create(long offset, long max, Iterator<T> iterator); @Override boolean hasNext(); @Override T next(); @Override void remove(); }
ResultIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException(); } private  ResultIterator(long offset, long max, Iterator<T> iterator); static Iterator<T> create(long offset, long max, Iterator<T> iterator); @Override boolean hasNext(); @Override T next(); @Override void remove(); static final int OFFSET_NONE; static final int MAX_ALL; }