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>
Wrap a
HopscotchHashMap
and allow using it as a Set
.- Since:
- 9.3
- Author:
- Dan Berindei
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) void
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a)
-
Constructor Details
-
ImmutableHopscotchHashSet
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
forEach
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
-
addAll
-
retainAll
-
removeAll
-
removeIf
-
clear
public void clear()
-