org.apache.cocoon.portal.pluto.om.common
Class UnmodifiableSet

java.lang.Object
  extended by org.apache.cocoon.portal.pluto.om.common.UnmodifiableSet
All Implemented Interfaces:
Serializable, Iterable, Collection, Set
Direct Known Subclasses:
SecurityRoleRefSetImpl.Unmodifiable, SecurityRoleSetImpl.Unmodifiable

public class UnmodifiableSet
extends Object
implements Set, Serializable

Version:
CVS $Id: UnmodifiableSet.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler
See Also:
Serialized Form

Field Summary
protected  Set c
           
 
Constructor Summary
UnmodifiableSet(Set c)
           
 
Method Summary
 boolean add(Object o)
           
 boolean addAll(Collection coll)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection coll)
           
 boolean equals(Object o)
           
 Set getModifiableSet()
          This method is only used by the ControllerFactoryImpl to unwrap the unmodifiable Set and allow to modify the set via controllers
 int hashCode()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection coll)
           
 boolean retainAll(Collection coll)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

c

protected Set c
Constructor Detail

UnmodifiableSet

public UnmodifiableSet(Set c)
Method Detail

size

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

isEmpty

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

contains

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

toArray

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

toArray

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

toString

public String toString()
Overrides:
toString in class Object

iterator

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

add

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

remove

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

containsAll

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

addAll

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

removeAll

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

retainAll

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

clear

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

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection
Specified by:
equals in interface Set
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface Set
Overrides:
hashCode in class Object

getModifiableSet

public Set getModifiableSet()
This method is only used by the ControllerFactoryImpl to unwrap the unmodifiable Set and allow to modify the set via controllers

Returns:
the modifiable set


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.