Package org.infinispan.multimap.impl
Class ListBucket<V>
java.lang.Object
org.infinispan.multimap.impl.ListBucket<V>
- All Implemented Interfaces:
SortableBucket<V>
Bucket used to store ListMultimap values.
- Since:
- 15.0
- Author:
- Katia Aresti
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucket
SortableBucket.SortOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static <V> ListBucket
<V> create
(Collection<V> value) boolean
int
hashCode()
index
(long index) boolean
isEmpty()
offer
(Collection<V> value, boolean first) poll
(boolean first, long count) rotate
(boolean rotateRight) long
size()
List
<ScoredValue<V>> sort
(SortableBucket.SortOptions sortOptions) stream()
sublist
(long from, long to) toDeque()
toString()
trim
(long from, long to) 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
-
ListBucket
public ListBucket() -
ListBucket
-
-
Method Details
-
create
-
contains
-
isEmpty
public boolean isEmpty() -
size
public long size() -
toDeque
- Returns:
- a defensive copy of the
values
collection.
-
toString
-
offer
-
set
-
sublist
-
trim
-
indexOf
-
insert
-
remove
-
rotate
-
stream
- Specified by:
stream
in interfaceSortableBucket<V>
-
sort
- Specified by:
sort
in interfaceSortableBucket<V>
-
replace
-
poll
-
index
-
equals
-
hashCode
public int hashCode()
-