org.apache.catalina.util
Class ResourceSet
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--java.util.HashSet
|
+--org.apache.catalina.util.ResourceSet
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set
- public final class ResourceSet
- extends java.util.HashSet
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.
- Version:
- $Revision: 1.1 $ $Date: 2000/10/21 13:25:33 $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
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 |
isLocked()
Return the locked state of this parameter map. |
void |
setLocked(boolean locked)
Set the locked state of this parameter map. |
Methods inherited from class java.util.HashSet |
add, clear, clone, contains, isEmpty, iterator, remove, 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 |
ResourceSet
public ResourceSet()
- Construct a new, empty set with the default initial capacity and
load factor.
ResourceSet
public ResourceSet(int initialCapacity)
- Construct a new, empty set with the specified initial capacity and
default load factor.
- Parameters:
initialCapacity
- The initial capacity of this set
ResourceSet
public ResourceSet(int initialCapacity,
float loadFactor)
- Construct a new, empty set with the specified initial capacity and
load factor.
- Parameters:
initialCapacity
- The initial capacity of this setloadFactor
- The load factor of this set
ResourceSet
public ResourceSet(java.util.Collection coll)
- Construct a new set with the same contents as the existing collection.
- Parameters:
coll
- The collection whose contents we should copy
isLocked
public boolean isLocked()
- Return the locked state of this parameter map.
setLocked
public void setLocked(boolean locked)
- Set the locked state of this parameter map.
- Parameters:
locked
- The new locked state
Copyright © 2000 Apache Software Foundation. All Rights Reserved.