org.apache.catalina.util
クラス ResourceSet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--org.apache.catalina.util.ResourceSet
すべての実装インタフェース:
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.

バージョン:
$Revision: 1.2 $ $Date: 2001/04/25 20:30:37 $
作成者:
Craig R. McClanahan
関連項目:
直列化された形式

コンストラクタの概要
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.
 
メソッドの概要
 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.
 
クラス java.util.HashSet から継承したメソッド
clone, contains, isEmpty, iterator, size
 
クラス java.util.AbstractSet から継承したメソッド
equals, hashCode, removeAll
 
クラス java.util.AbstractCollection から継承したメソッド
addAll, containsAll, retainAll, toArray, toArray, toString
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 
インタフェース 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.
パラメータ:
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.
パラメータ:
initialCapacity - The initial capacity of this set
loadFactor - 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.
パラメータ:
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.
パラメータ:
locked - The new locked state

add

public boolean add(java.lang.Object o)
Add the specified element to this set if it is not already present. Return true if the element was added.
オーバーライド:
クラス java.util.HashSet 内の add
パラメータ:
o - The object to be added
例外:
java.lang.IllegalStateException - if this ResourceSet is locked

clear

public void clear()
Remove all of the elements from this set.
オーバーライド:
クラス java.util.HashSet 内の clear
例外:
java.lang.IllegalStateException - if this ResourceSet is locked

remove

public boolean remove(java.lang.Object o)
Remove the given element from this set if it is present. Return true if the element was removed.
オーバーライド:
クラス java.util.HashSet 内の remove
パラメータ:
o - The object to be removed
例外:
java.lang.IllegalStateException - if this ResourceSet is locked


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.