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 ClassesNested classes/interfaces inherited from interface org.infinispan.multimap.impl.BaseSetBucket
BaseSetBucket.SetUtilNested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucket
SortableBucket.SortOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAll(Collection<V> values) booleanstatic <V> SetBucket<V> create(Collection<V> values) static <V> SetBucket<V> create(V value) booleanList<ScoredValue<V>> Set<ScoredValue<V>> getAsSet()inthashCode()booleanisEmpty()removeAll(Collection<V> values) intsize()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, waitMethods inherited from interface org.infinispan.multimap.impl.BaseSetBucket
inter, unionMethods inherited from interface org.infinispan.multimap.impl.SortableBucket
sort
-
Constructor Details
-
SetBucket
public SetBucket() -
SetBucket
-
-
Method Details
-
create
-
create
-
contains
-
getAsSet
- Specified by:
getAsSetin interfaceBaseSetBucket<V>
-
getAsList
- Specified by:
getAsListin interfaceBaseSetBucket<V>
-
getScore
- Specified by:
getScorein interfaceBaseSetBucket<V>
-
isEmpty
public boolean isEmpty() -
size
public int size() -
toSet
-
toList
-
toString
-
addAll
-
removeAll
-
stream
- Specified by:
streamin interfaceSortableBucket<V>
-
sort
- Specified by:
sortin interfaceSortableBucket<V>
-
equals
-
hashCode
-