Package java.util
Class HashSet
- java.lang.Object
-
- java.util.AbstractCollection
-
- java.util.AbstractSet
-
- java.util.HashSet
-
- All Implemented Interfaces:
Serializable,Cloneable,Collection,Set
public class HashSet extends AbstractSet implements Set, Cloneable, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HashSet()HashSet(int var0)HashSet(int var0, float var1)HashSet(Collection var0)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Object var0)voidclear()Objectclone()booleancontains(Object var0)booleanisEmpty()Iteratoriterator()booleanremove(Object var0)intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
HashSet
public HashSet()
-
HashSet
public HashSet(int var0)
-
HashSet
public HashSet(int var0, float var1)
-
HashSet
public HashSet(Collection var0)
-
-
Method Detail
-
add
public boolean add(Object var0)
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceSet- Overrides:
addin classAbstractCollection
-
clear
public void clear()
- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceSet- Overrides:
clearin classAbstractCollection
-
contains
public boolean contains(Object var0)
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceSet- Overrides:
containsin classAbstractCollection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceSet- Overrides:
isEmptyin classAbstractCollection
-
iterator
public Iterator iterator()
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceSet- Specified by:
iteratorin classAbstractCollection
-
remove
public boolean remove(Object var0)
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet- Overrides:
removein classAbstractCollection
-
size
public int size()
- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceSet- Specified by:
sizein classAbstractCollection
-
-