V
- The member type in the Collectionpublic class MyReadOnlyCollection<V>
extends java.lang.Object
implements java.util.Collection<V>
Constructor and Description |
---|
MyReadOnlyCollection(java.util.Collection<V> collection)
Creates the MyReadOnlyCollection
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(V e) |
boolean |
addAll(java.util.Collection<? extends V> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<V> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
public MyReadOnlyCollection(java.util.Collection<V> collection)
collection
- -public final boolean addAll(java.util.Collection<? extends V> c)
addAll
in interface java.util.Collection<V>
public final void clear()
clear
in interface java.util.Collection<V>
public final boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<V>
public final boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<V>
public final boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection<V>
equals
in class java.lang.Object
public final int hashCode()
hashCode
in interface java.util.Collection<V>
hashCode
in class java.lang.Object
public final boolean isEmpty()
isEmpty
in interface java.util.Collection<V>
public final java.util.Iterator<V> iterator()
public final boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<V>
public final boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<V>
public final boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<V>
public final int size()
size
in interface java.util.Collection<V>
public final java.lang.Object[] toArray()
toArray
in interface java.util.Collection<V>
public final <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<V>
public final java.lang.String toString()
toString
in class java.lang.Object