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 boolean
add(Object var0)
void
clear()
Object
clone()
boolean
contains(Object var0)
boolean
isEmpty()
Iterator
iterator()
boolean
remove(Object var0)
int
size()
-
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:
add
in interfaceCollection
- Specified by:
add
in interfaceSet
- Overrides:
add
in classAbstractCollection
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceSet
- Overrides:
clear
in classAbstractCollection
-
contains
public boolean contains(Object var0)
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceSet
- Overrides:
contains
in classAbstractCollection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceSet
- Overrides:
isEmpty
in classAbstractCollection
-
iterator
public Iterator iterator()
- Specified by:
iterator
in interfaceCollection
- Specified by:
iterator
in interfaceSet
- Specified by:
iterator
in classAbstractCollection
-
remove
public boolean remove(Object var0)
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceSet
- Overrides:
remove
in classAbstractCollection
-
size
public int size()
- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceSet
- Specified by:
size
in classAbstractCollection
-
-