@Test(expectedExceptions = UnsupportedOperationException.class) public void set() { final Array<Integer> proxy = Array.of(ObjectStore.ofLength(1000)); final ListIterator<Integer> it = new BaseSeqIterator<>(proxy); it.set(23); }
@Override public void set(final T value) { throw new UnsupportedOperationException( "Iterator is immutable." ); }
BaseSeqIterator implements ListIterator<T> { @Override public void set(final T value) { throw new UnsupportedOperationException( "Iterator is immutable." ); } }
BaseSeqIterator implements ListIterator<T> { @Override public void set(final T value) { throw new UnsupportedOperationException( "Iterator is immutable." ); } BaseSeqIterator(final S array); }
BaseSeqIterator implements ListIterator<T> { @Override public void set(final T value) { throw new UnsupportedOperationException( "Iterator is immutable." ); } BaseSeqIterator(final S array); @Override boolean hasNext(); @Override T next(); @Override int nextIndex(); @Override boolean hasPrevious(); @Override T previous(); @Override int previousIndex(); @Override void set(final T value); @Override void add(final T value); @Override void remove(); }
BaseSeqIterator implements ListIterator<T> { @Override public void set(final T value) { throw new UnsupportedOperationException( "Iterator is immutable." ); } BaseSeqIterator(final S array); @Override boolean hasNext(); @Override T next(); @Override int nextIndex(); @Override boolean hasPrevious(); @Override T previous(); @Override int previousIndex(); @Override void set(final T value); @Override void add(final T value); @Override void remove(); final S array; }