T - the element typepublic final class ImmutableHashSet<T> extends ImmutableSet<T> implements java.io.Serializable
Set implementation. This implementation uses open addressing with linear probing and a table size of the nearest power of two so that load
factor is below 0.75. The implementation is inspired by Guava's ImmutableSet implementation.ImmutableSet.Builder<T>| Constructor and Description |
|---|
ImmutableHashSet(java.util.Set<T> data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.util.Spliterator<T> |
spliterator() |
builder, collector, copyOf, ofpublic ImmutableHashSet(java.util.Set<T> data)
public int size()
public boolean contains(java.lang.Object o)
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.util.Iterator<T> iterator()
public boolean add(T e)
public boolean remove(java.lang.Object o)
public boolean addAll(java.util.Collection<? extends T> c)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeAll(java.util.Collection<?> c)
public void clear()
public boolean isEmpty()
public boolean containsAll(java.util.Collection<?> c)
Copyright © 2014. All Rights Reserved.