Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » util » [javadoc | source]
org.apache.catalina.util
public final class: ResourceSet [javadoc | source]
java.lang.Object
   java.util.AbstractCollection
      java.util.AbstractSet
         java.util.HashSet
            org.apache.catalina.util.ResourceSet

All Implemented Interfaces:
    Set, Serializable, Cloneable, Collection

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:
 public ResourceSet() 
 public ResourceSet(int initialCapacity) 
 public ResourceSet(Collection coll) 
    Construct a new set with the same contents as the existing collection.
    Parameters:
    coll - The collection whose contents we should copy
 public ResourceSet(int initialCapacity,
    float loadFactor) 
Method from org.apache.catalina.util.ResourceSet Summary:
add,   clear,   isLocked,   remove,   setLocked
Methods from java.util.HashSet:
add,   clear,   clone,   contains,   isEmpty,   iterator,   remove,   size
Methods from java.util.AbstractSet:
equals,   hashCode,   removeAll
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.util.ResourceSet Detail:
 public boolean add(Object o) 
    Add the specified element to this set if it is not already present. Return true if the element was added.
 public  void clear() 
    Remove all of the elements from this set.
 public boolean isLocked() 
    Return the locked state of this parameter map.
 public boolean remove(Object o) 
    Remove the given element from this set if it is present. Return true if the element was removed.
 public  void setLocked(boolean locked) 
    Set the locked state of this parameter map.