|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<T>
scale.common.HashSet<T>
public class HashSet<T>
A Scale cover class for a java.util.HashSet.
$Id: HashSet.java,v 1.25 2007-10-04 19:58:10 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
| Constructor Summary | |
|---|---|
HashSet()
|
|
HashSet(HashSet<T> set)
|
|
HashSet(java.util.HashSet<T> set)
|
|
HashSet(int capacity)
|
|
HashSet(int capacity,
float loadRatio)
|
|
HashSet(java.util.List<T> list)
|
|
HashSet(java.util.Set<T> set)
|
|
| Method Summary | |
|---|---|
void |
add(java.util.Enumeration<T> e)
Add the elements of an enumeration to this HashSet. |
void |
add(HashSet<T> hs)
Add the elements of another HashSet to this HashSet. |
void |
add(java.util.Iterator<T> e)
Add the elements of an iteration to this HashSet. |
HashSet<T> |
clone()
|
T |
remove()
Remove an object at random from the HashSet |
java.lang.String |
toString()
|
HashSet<T> |
union(HashSet<T> u)
|
| Methods inherited from class java.util.HashSet |
|---|
add, clear, 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 |
| 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 |
| Constructor Detail |
|---|
public HashSet()
public HashSet(int capacity)
public HashSet(int capacity,
float loadRatio)
public HashSet(HashSet<T> set)
public HashSet(java.util.HashSet<T> set)
public HashSet(java.util.Set<T> set)
public HashSet(java.util.List<T> list)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.util.AbstractCollection<T>public T remove()
public HashSet<T> union(HashSet<T> u)
public void add(java.util.Iterator<T> e)
e - is the iterator from which the new elements are obtainedpublic void add(java.util.Enumeration<T> e)
e - is the enumeration from which the new elements are obtainedpublic void add(HashSet<T> hs)
hs - the HashSet from which the new elements are obtainedpublic final HashSet<T> clone()
clone in class java.util.HashSet<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||