java.util
Class Collections.UnmodifiableCollection

java.lang.Object
  |
  +--java.util.Collections.UnmodifiableCollection
Direct Known Subclasses:
Collections.UnmodifiableList, Collections.UnmodifiableSet

static class Collections.UnmodifiableCollection
extends Object
implements Collection, Serializable

See Also:
Serialized Form

Field Summary
(package private)  Collection c
           
 
Constructor Summary
(package private) Collections.UnmodifiableCollection(Collection c)
           
 
Method Summary
 boolean add(Object o)
           
 boolean addAll(Collection coll)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection coll)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection coll)
           
 boolean retainAll(Collection coll)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

c

Collection c
Constructor Detail

Collections.UnmodifiableCollection

Collections.UnmodifiableCollection(Collection c)
Method Detail

size

public int size()
Specified by:
size in interface Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Collection

iterator

public Iterator iterator()
Specified by:
iterator in interface Collection

add

public boolean add(Object o)
Specified by:
add in interface Collection

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection

containsAll

public boolean containsAll(Collection coll)
Specified by:
containsAll in interface Collection

addAll

public boolean addAll(Collection coll)
Specified by:
addAll in interface Collection

removeAll

public boolean removeAll(Collection coll)
Specified by:
removeAll in interface Collection

retainAll

public boolean retainAll(Collection coll)
Specified by:
retainAll in interface Collection

clear

public void clear()
Specified by:
clear in interface Collection