Method from java.util.Collections$UnmodifiableList Detail: |
public void add(int index,
E element) {
throw new UnsupportedOperationException();
}
|
public boolean addAll(int index,
Collection<? extends E> c) {
throw new UnsupportedOperationException();
}
|
public boolean equals(Object o) {
return o == this || list.equals(o);
}
|
public E get(int index) {
return list.get(index);
}
|
public int hashCode() {
return list.hashCode();
}
|
public int indexOf(Object o) {
return list.indexOf(o);
}
|
public int lastIndexOf(Object o) {
return list.lastIndexOf(o);
}
|
public ListIterator<E> listIterator() {
return listIterator(0);
}
|
public ListIterator<E> listIterator(int index) {
return new ListIterator< E >() {
private final ListIterator< ? extends E > i
= list.listIterator(index);
public boolean hasNext() {return i.hasNext();}
public E next() {return i.next();}
public boolean hasPrevious() {return i.hasPrevious();}
public E previous() {return i.previous();}
public int nextIndex() {return i.nextIndex();}
public int previousIndex() {return i.previousIndex();}
public void remove() {
throw new UnsupportedOperationException();
}
public void set(E e) {
throw new UnsupportedOperationException();
}
public void add(E e) {
throw new UnsupportedOperationException();
}
};
}
|
public E remove(int index) {
throw new UnsupportedOperationException();
}
|
public E set(int index,
E element) {
throw new UnsupportedOperationException();
}
|
public List<E> subList(int fromIndex,
int toIndex) {
return new UnmodifiableList< >(list.subList(fromIndex, toIndex));
}
|