Module java.base
Package java.util

# Class HashSet

=
public class HashSet<E>
extends java.util.AbstractSet<E>
implements java.io.Serializable, java.lang.Cloneable, java.util.Set<E>

## Constructors

- =
  public HashSet()
- =
  public HashSet(int arg0)
- =
  public HashSet(int arg0, float arg1)
- =
  public HashSet(java.util.Collection<? extends E> arg0)

## Methods

- =
  public boolean add(E arg0)
- =
  public void clear()
- =
  public java.lang.Object clone()
- =
  public boolean contains(java.lang.Object arg0)
- =
  public boolean isEmpty()
- =
  public java.util.Iterator<E> iterator()
- =
  public static <T> java.util.HashSet<T> newHashSet(int arg0)
- =
  public boolean remove(java.lang.Object arg0)
- =
  public int size()
- =
  public java.util.Spliterator<E> spliterator()
- =
  public java.lang.Object[] toArray()
- =
  public <T> T[] toArray(T[] arg0)

## Serialized Form

=

### serialVersionUID

=-5024744406713321676

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.