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 SummaryNested ClassesNested classes/interfaces inherited from interface org.infinispan.multimap.impl.BaseSetBucketBaseSetBucket.SetUtilNested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucketSortableBucket.SortOptions
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.multimap.impl.BaseSetBucketinter, unionMethods inherited from interface org.infinispan.multimap.impl.SortableBucketsort
- 
Constructor Details- 
SetBucketpublic SetBucket()
- 
SetBucket
 
- 
- 
Method Details- 
create
- 
create
- 
contains
- 
getAsSet- Specified by:
- getAsSetin interface- BaseSetBucket<V>
 
- 
getAsList- Specified by:
- getAsListin interface- BaseSetBucket<V>
 
- 
getScore- Specified by:
- getScorein interface- BaseSetBucket<V>
 
- 
isEmptypublic boolean isEmpty()
- 
sizepublic int size()
- 
toSet- Returns:
- a defensive copy of the valuescollection.
 
- 
toList
- 
toString
- 
addAll
- 
removeAll
- 
stream- Specified by:
- streamin interface- SortableBucket<V>
 
- 
sort- Specified by:
- sortin interface- SortableBucket<V>
 
- 
equals
- 
hashCodepublic int hashCode()
 
-