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.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | locked
The current lock state of this parameter map. |
| private static final long | |
| private static final StringManager | sm
The string manager for this package. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ResourceSet(int
The initial capacity of this set initialCapacity)Construct a new, empty set with the specified initial capacity and default load factor. |
| public | ResourceSet(int
The initial capacity of this set initialCapacity, float The load factor of this set loadFactor)Construct a new, empty set with the specified initial capacity and load factor. |
| public | ResourceSet(Collection<T>
The collection whose contents we should copy coll)Construct a new set with the same contents as the existing collection. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(T
The object to be added o)Overrides java. Implements java. Add the specified element to this set if it is not already present. |
| public void | clear()
Overrides java. Implements java. Remove all of the elements from this set. |
| public boolean | |
| public boolean | remove(Object
The object to be removed o)Overrides java. Implements java. Remove the given element from this set if it is present. |
| public void |
| locked | back to summary |
|---|---|
| private boolean locked The current lock state of this parameter map. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| sm | back to summary |
|---|---|
| private static final StringManager sm The string manager for this package. | |
| ResourceSet | back to summary |
|---|---|
| public ResourceSet() Construct a new, empty set with the default initial capacity and load factor. | |
| ResourceSet | back to summary |
|---|---|
| public ResourceSet(int initialCapacity) Construct a new, empty set with the specified initial capacity and default load factor.
| |
| ResourceSet | back to summary |
|---|---|
| public ResourceSet(int initialCapacity, float loadFactor) Construct a new, empty set with the specified initial capacity and load factor.
| |
| ResourceSet | back to summary |
|---|---|
| public ResourceSet(Collection<T> coll) Construct a new set with the same contents as the existing collection.
| |
| add | back to summary |
|---|---|
| public boolean add(T o) Overrides java. Implements java. Add the specified element to this set if it is not already present.
Return
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Remove all of the elements from this set.
| |
| isLocked | back to summary |
|---|---|
public boolean isLocked()
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Remove the given element from this set if it is present.
Return
| |
| setLocked | back to summary |
|---|---|
| public void setLocked(boolean locked) Set the locked state of this parameter map.
| |