Top Description Constructors Methods
com.google.common.collect

public abstract Class UnmodifiableListIterator<E extends @Nullable Object>

extends UnmodifiableIterator<E extends @Nullable Object>
implements ListIterator<E extends @Nullable Object>
Class Inheritance
All Implemented Interfaces
java.util.ListIterator, java.util.Iterator
Known Direct Subclasses
com.google.common.collect.AbstractIndexedListIterator
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, com.google.errorprone.annotations.DoNotCall, java.util.ListIterator, org.checkerframework.checker.nullness.qual.Nullable

A list iterator that does not support remove, add, or set.
Author
Louis Wasserman
Since
7.0

Constructor Summary

AccessConstructor and Description
protected
UnmodifiableListIterator()

Constructor for use by subclasses.

Method Summary

Modifier and TypeMethod and Description
public final void
add(E
the element to insert
e
)

Implements java.util.ListIterator.add.

Deprecated Unsupported operation.
Guaranteed to throw an exception and leave the underlying data unmodified.
public final void
set(E
the element with which to replace the last element returned by next or previous
e
)

Implements java.util.ListIterator.set.

Deprecated Unsupported operation.
Guaranteed to throw an exception and leave the underlying data unmodified.
Inherited from com.google.common.collect.UnmodifiableIterator:
remove

Constructor Detail

UnmodifiableListIteratorback to summary
protected UnmodifiableListIterator()

Constructor for use by subclasses.

Method Detail

addback to summary
public final void add(E e)

Implements java.util.ListIterator.add.

Deprecated

Unsupported operation.

Guaranteed to throw an exception and leave the underlying data unmodified.

Parameters
e:E

Doc from java.util.ListIterator.add.

the element to insert

Annotations
@Deprecated
@Override
@DoNotCall:Always throws UnsupportedOperationException
Exceptions
UnsupportedOperationException:
always
setback to summary
public final void set(E e)

Implements java.util.ListIterator.set.

Deprecated

Unsupported operation.

Guaranteed to throw an exception and leave the underlying data unmodified.

Parameters
e:E

Doc from java.util.ListIterator.set.

the element with which to replace the last element returned by next or previous

Annotations
@Deprecated
@Override
@DoNotCall:Always throws UnsupportedOperationException
Exceptions
UnsupportedOperationException:
always