it.unimi.dsi.fastutil.objects
Class ReferenceCollections.UnmodifiableCollection

java.lang.Object
  extended byit.unimi.dsi.fastutil.objects.ReferenceCollections.UnmodifiableCollection
All Implemented Interfaces:
Collection, ReferenceCollection, Serializable
Direct Known Subclasses:
ReferenceLists.UnmodifiableList, ReferenceSets.UnmodifiableSet
Enclosing class:
ReferenceCollections

public static class ReferenceCollections.UnmodifiableCollection
extends Object
implements ReferenceCollection, Serializable

An unmodifiable wrapper class for collections.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean add(Object k)
           
 boolean addAll(Collection c)
           
 boolean addAll(ReferenceCollection c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 boolean containsAll(ReferenceCollection c)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 ObjectIterator objectIterator()
          Returns a type-specific iterator on the collection.
 boolean rem(Object k)
           
 boolean remove(Object ok)
           
 boolean removeAll(Collection c)
           
 boolean removeAll(ReferenceCollection c)
           
 boolean retainAll(Collection c)
           
 boolean retainAll(ReferenceCollection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
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

objectIterator

public ObjectIterator objectIterator()
Description copied from interface: ReferenceCollection
Returns a type-specific iterator on the collection.

The iterator returned by the Collection.iterator() method and by this method are identical; however, using this method you can save a type casting.

Specified by:
objectIterator in interface ReferenceCollection
See Also:
Collection.iterator()

add

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

rem

public boolean rem(Object k)

remove

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

addAll

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

containsAll

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

removeAll

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

retainAll

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

addAll

public boolean addAll(ReferenceCollection c)

containsAll

public boolean containsAll(ReferenceCollection c)

removeAll

public boolean removeAll(ReferenceCollection c)

retainAll

public boolean retainAll(ReferenceCollection c)

clear

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

toString

public String toString()