⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.map

Class UnmodifiableEntrySet

java.lang.Object
|
+--org.apache.commons.collections.collection.AbstractCollectionDecorator
   |
   +--org.apache.commons.collections.set.AbstractSetDecorator
      |
      +--org.apache.commons.collections.map.UnmodifiableEntrySet

All Implemented Interfaces:
Collection, Unmodifiable, Set


public final class UnmodifiableEntrySet
extends AbstractSetDecorator
implements Unmodifiable

Decorates a map entry Set to ensure it can't be altered.
Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Method Summary

boolean

add(Object object)

boolean

addAll(Collection coll)

void

clear()

static Set

decorate(Set set)

Factory method to create an unmodifiable set of Map Entry objects.

Iterator

iterator()

boolean

remove(Object object)

boolean

removeAll(Collection coll)

boolean

retainAll(Collection coll)

Object[]

toArray()

Object[]

toArray(Object[] array)

Method Details

add

public boolean add(Object object)

Parameters:
object

addAll

public boolean addAll(Collection coll)

Parameters:
coll

clear

public void clear()


decorate

public static Set decorate(Set set)

Factory method to create an unmodifiable set of Map Entry objects.

Parameters:
set - the set to decorate, must not be null
Throws:
- if set is null

iterator

public Iterator iterator()


remove

public boolean remove(Object object)

Parameters:
object

removeAll

public boolean removeAll(Collection coll)

Parameters:
coll

retainAll

public boolean retainAll(Collection coll)

Parameters:
coll

toArray

public Object[] toArray()


toArray

public Object[] toArray(Object[] array)

Parameters:
array