|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.util.collections.HashtableKeySet
This class wraps a Set implementation on the keys of an underlying hash table.
| Constructor Summary | |
HashtableKeySet(java.util.Hashtable table)
Creates a new Set of the keys found in the specified hash table. |
|
| Method Summary | |
boolean |
add(java.lang.Object o)
Unsupported operation. |
boolean |
addAll(Collection c)
Unsupported operation. |
void |
clear()
Unsupported operation. |
boolean |
contains(java.lang.Object o)
Returns true if the set contains the specified object. |
boolean |
containsAll(Collection c)
Returns true is this set contains all the elements of the specified set. |
boolean |
equals(java.lang.Object o)
Returns true if the specified argument is equal to this set. |
int |
hashCode()
Returns a hash code for this set. |
boolean |
isEmpty()
Returns true if the set is empty. |
Iterator |
iterator()
Returns an iterator for the set. |
boolean |
remove(java.lang.Object o)
Unsupported operation. |
boolean |
removeAll(Collection c)
Unsupported operation. |
boolean |
retainAll(Collection c)
Unsupported operation. |
int |
size()
Returns the size of the set. |
java.lang.Object[] |
toArray()
This is currently not implemented and will throw an exception if called. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
This is currently not implemented and will throw an exception if called. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HashtableKeySet(java.util.Hashtable table)
table - the underlying Hashtable for this set.| Method Detail |
public int size()
size in interface Setpublic boolean isEmpty()
isEmpty in interface Setpublic boolean contains(java.lang.Object o)
contains in interface Seto - the object to be tested for containment.
public Iterator iterator()
EnumerationIterator implementation.
iterator in interface SetEnumerationIteratorpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface Seta - the array in to which the elements will be stored (if big
enough)
public java.lang.Object[] toArray()
toArray in interface Setpublic boolean containsAll(Collection c)
containsAll in interface Setc - the collection to be checked
public boolean equals(java.lang.Object o)
equals in interface Setequals in class java.lang.Objecto - the object to be compared for equality
public int hashCode()
hashCode in interface SethashCode in class java.lang.Objectpublic boolean add(java.lang.Object o)
add in interface Seto - the element to add to the set
public boolean addAll(Collection c)
addAll in interface Setc - the collection from which elements are added
public boolean remove(java.lang.Object o)
remove in interface Seto - the element to remove from the set
public boolean removeAll(Collection c)
removeAll in interface Setc - the elements to be removed from this set
public boolean retainAll(Collection c)
retainAll in interface Setc - the elements to be retained for this set
public void clear()
clear in interface Set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||