Method from java.util.Collections$UnmodifiableCollection Detail: |
public boolean add(E e) {
throw new UnsupportedOperationException();
}
|
public boolean addAll(Collection<? extends E> coll) {
throw new UnsupportedOperationException();
}
|
public void clear() {
throw new UnsupportedOperationException();
}
|
public boolean contains(Object o) {
return c.contains(o);
}
|
public boolean containsAll(Collection<?> coll) {
return c.containsAll(coll);
}
|
public boolean isEmpty() {
return c.isEmpty();
}
|
public Iterator<E> iterator() {
return new Iterator< E >() {
private final Iterator< ? extends E > i = c.iterator();
public boolean hasNext() {return i.hasNext();}
public E next() {return i.next();}
public void remove() {
throw new UnsupportedOperationException();
}
};
}
|
public boolean remove(Object o) {
throw new UnsupportedOperationException();
}
|
public boolean removeAll(Collection<?> coll) {
throw new UnsupportedOperationException();
}
|
public boolean retainAll(Collection<?> coll) {
throw new UnsupportedOperationException();
}
|
public int size() {
return c.size();
}
|
public Object[] toArray() {
return c.toArray();
}
|
public T[] toArray(T[] a) {
return c.toArray(a);
}
|
public String toString() {
return c.toString();
}
|