Bouncy Castle Cryptography 1.26

java.util
Class HashSet

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended byjava.util.HashSet
All Implemented Interfaces:
Collection, Set

public class HashSet
extends AbstractSet


Constructor Summary
HashSet()
           
HashSet(Collection c)
           
HashSet(int initialCapacity)
           
HashSet(int initialCapacity, float loadFactor)
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 void clear()
           
 java.lang.Object clone()
           
 boolean contains(java.lang.Object o)
           
 Iterator iterator()
           
 boolean remove(java.lang.Object o)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

HashSet

public HashSet()

HashSet

public HashSet(Collection c)

HashSet

public HashSet(int initialCapacity,
               float loadFactor)

HashSet

public HashSet(int initialCapacity)
Method Detail

iterator

public Iterator iterator()
Specified by:
iterator in interface Set
Specified by:
iterator in class AbstractCollection

size

public int size()
Specified by:
size in interface Set
Specified by:
size in class AbstractCollection

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface Set
Overrides:
contains in class AbstractCollection

add

public boolean add(java.lang.Object o)
Specified by:
add in interface Set
Overrides:
add in class AbstractCollection

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface Set
Overrides:
remove in class AbstractCollection

clear

public void clear()
Specified by:
clear in interface Set
Overrides:
clear in class AbstractCollection

clone

public java.lang.Object clone()

Bouncy Castle Cryptography 1.26