|
|
@@ -24,19 +24,23 @@ public abstract class ImmutableListIterator<T> extends AbstractListIterator<T> {
|
|
|
public ImmutableListIterator(int index) {
|
|
|
super(index);
|
|
|
}
|
|
|
+
|
|
|
+ public ImmutableListIterator() {
|
|
|
+ super();
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
- protected void remove(int index) {
|
|
|
+ protected final void remove(int index) {
|
|
|
throw new UnsupportedOperationException(LIST_IS_IMMUTABLE);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected void add(int index, T value) {
|
|
|
+ protected final void add(int index, T value) {
|
|
|
throw new UnsupportedOperationException(LIST_IS_IMMUTABLE);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected void set(int index, T value) {
|
|
|
+ protected final void set(int index, T value) {
|
|
|
throw new UnsupportedOperationException(LIST_IS_IMMUTABLE);
|
|
|
}
|
|
|
|