Package org.infinispan.commons.util
Class ImmutableHopscotchHashSet<E>
- java.lang.Object
-
- org.infinispan.commons.util.ImmutableHopscotchHashSet<E>
-
- Type Parameters:
E- The element type
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
public class ImmutableHopscotchHashSet<E> extends Object implements Set<E>
Wrap aHopscotchHashMapand allow using it as aSet.- Since:
- 9.3
- Author:
- Dan Berindei
-
-
Constructor Summary
Constructors Constructor Description ImmutableHopscotchHashSet(Collection<E> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanaddAll(Collection<? extends E> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)voidforEach(Consumer<? super E> action)booleanisEmpty()Iterator<E>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanremoveIf(Predicate<? super E> filter)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<T> T[]toArray(T[] a)
-
-
-
Constructor Detail
-
ImmutableHopscotchHashSet
public ImmutableHopscotchHashSet(Collection<E> collection)
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(E e)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
clear
public void clear()
-
-