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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<V> values) booleanstatic <V> SetBucket<V> create(V value) booleaninthashCode()booleanisEmpty()booleanbooleanremoveAll(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.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
valuescollection.
-
toList
-
toString
-
add
-
remove
-
addAll
-
removeAll
-
stream
- Specified by:
streamin interfaceSortableBucket<V>
-
sort
- Specified by:
sortin interfaceSortableBucket<V>
-
equals
-
hashCode
public int hashCode()
-