org.apache.catalina.util
public final class ResourceSet extends HashSet
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: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Constructor Summary | |
---|---|
ResourceSet()
Construct a new, empty set with the default initial capacity and
load factor. | |
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.
| |
ResourceSet(Collection coll)
Construct a new set with the same contents as the existing collection.
|
Method Summary | |
---|---|
boolean | add(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(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.
|
Parameters: initialCapacity The initial capacity of this set
Parameters: initialCapacity The initial capacity of this set loadFactor The load factor of this set
Parameters: coll The collection whose contents we should copy
true
if the element was added.
Parameters: o The object to be added
Throws: IllegalStateException if this ResourceSet is locked
Throws: IllegalStateException if this ResourceSet is locked
true
if the element was removed.
Parameters: o The object to be removed
Throws: IllegalStateException if this ResourceSet is locked
Parameters: locked The new locked state