Package org.infinispan.multimap.impl
Class SetBucket<V>
java.lang.Object
org.infinispan.multimap.impl.SetBucket<V>
- All Implemented Interfaces:
SortableBucket<V>
Bucket used to store Set data type.
- Since:
- 15.0
- Author:
- Vittorio Rigamonti
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucket
SortableBucket.SortOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<V> values) boolean
static <V> SetBucket
<V> create
(V value) boolean
int
hashCode()
boolean
isEmpty()
boolean
boolean
removeAll
(Collection<V> values) int
size()
List
<ScoredValue<V>> sort
(SortableBucket.SortOptions sortOptions) stream()
toList()
toSet()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.multimap.impl.SortableBucket
sort
-
Constructor Details
-
SetBucket
public SetBucket() -
SetBucket
-
SetBucket
-
-
Method Details
-
create
-
contains
-
isEmpty
public boolean isEmpty() -
size
public int size() -
toSet
- Returns:
- a defensive copy of the
values
collection.
-
toList
-
toString
-
add
-
remove
-
addAll
-
removeAll
-
stream
- Specified by:
stream
in interfaceSortableBucket<V>
-
sort
- Specified by:
sort
in interfaceSortableBucket<V>
-
equals
-
hashCode
public int hashCode()
-