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 aHopscotchHashMap
and 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 boolean
add(E e)
boolean
addAll(Collection<? extends E> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
void
forEach(Consumer<? super E> action)
boolean
isEmpty()
Iterator<E>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
removeIf(Predicate<? super E> filter)
boolean
retainAll(Collection<?> c)
int
size()
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()
-
-