| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
org.apache.catalina.util.ResourceSet
public final class ResourceSet
Extended implementation of HashSet that includes a
 locked property.  This class can be used to safely expose
 resource path sets to user classes without having to clone them in order
 to avoid modifications.  When first created, a ResourceMap
 is not locked.
| Constructor Summary | |
|---|---|
| ResourceSet()Construct a new, empty set with the default initial capacity and load factor. | |
| ResourceSet(java.util.Collection coll)Construct a new set with the same contents as the existing collection. | |
| ResourceSet(int initialCapacity)Construct a new, empty set with the specified initial capacity and default load factor. | |
| ResourceSet(int initialCapacity,
            float loadFactor)Construct a new, empty set with the specified initial capacity and load factor. | |
| Method Summary | |
|---|---|
|  boolean | add(java.lang.Object o)Add the specified element to this set if it is not already present. | 
|  void | clear()Remove all of the elements from this set. | 
|  boolean | isLocked()Return the locked state of this parameter map. | 
|  boolean | remove(java.lang.Object o)Remove the given element from this set if it is present. | 
|  void | setLocked(boolean locked)Set the locked state of this parameter map. | 
| Methods inherited from class java.util.HashSet | 
|---|
| clone, contains, isEmpty, iterator, size | 
| Methods inherited from class java.util.AbstractSet | 
|---|
| equals, hashCode, removeAll | 
| Methods inherited from class java.util.AbstractCollection | 
|---|
| addAll, containsAll, retainAll, toArray, toArray, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.Set | 
|---|
| addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray | 
| Constructor Detail | 
|---|
public ResourceSet()
public ResourceSet(int initialCapacity)
initialCapacity - The initial capacity of this set
public ResourceSet(int initialCapacity,
                   float loadFactor)
initialCapacity - The initial capacity of this setloadFactor - The load factor of this setpublic ResourceSet(java.util.Collection coll)
coll - The collection whose contents we should copy| Method Detail | 
|---|
public boolean isLocked()
public void setLocked(boolean locked)
locked - The new locked statepublic boolean add(java.lang.Object o)
true if the element was added.
add in interface java.util.Collectionadd in interface java.util.Setadd in class java.util.HashSeto - The object to be added
java.lang.IllegalStateException - if this ResourceSet is lockedpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setclear in class java.util.HashSetjava.lang.IllegalStateException - if this ResourceSet is lockedpublic boolean remove(java.lang.Object o)
true if the element was removed.
remove in interface java.util.Collectionremove in interface java.util.Setremove in class java.util.HashSeto - The object to be removed
java.lang.IllegalStateException - if this ResourceSet is locked| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||