Package org.infinispan.multimap.impl
Class SetBucket<V>
java.lang.Object
org.infinispan.multimap.impl.SetBucket<V>
- All Implemented Interfaces:
BaseSetBucket<V>
,SortableBucket<V>
@ProtoTypeId(5305)
public class SetBucket<V>
extends Object
implements SortableBucket<V>, BaseSetBucket<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.BaseSetBucket
BaseSetBucket.SetUtil
Nested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucket
SortableBucket.SortOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAll
(Collection<V> values) boolean
static <V> SetBucket
<V> create
(Collection<V> values) static <V> SetBucket
<V> create
(V value) boolean
List
<ScoredValue<V>> Set
<ScoredValue<V>> getAsSet()
int
hashCode()
boolean
isEmpty()
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.BaseSetBucket
inter, union
Methods inherited from interface org.infinispan.multimap.impl.SortableBucket
sort
-
Constructor Details
-
SetBucket
public SetBucket() -
SetBucket
-
-
Method Details
-
create
-
create
-
contains
-
getAsSet
- Specified by:
getAsSet
in interfaceBaseSetBucket<V>
-
getAsList
- Specified by:
getAsList
in interfaceBaseSetBucket<V>
-
getScore
- Specified by:
getScore
in interfaceBaseSetBucket<V>
-
isEmpty
public boolean isEmpty() -
size
public int size() -
toSet
- Returns:
- a defensive copy of the
values
collection.
-
toList
-
toString
-
addAll
-
removeAll
-
stream
- Specified by:
stream
in interfaceSortableBucket<V>
-
sort
- Specified by:
sort
in interfaceSortableBucket<V>
-
equals
-
hashCode
public int hashCode()
-