Class ListBucket<V>

java.lang.Object
org.infinispan.multimap.impl.ListBucket<V>
All Implemented Interfaces:
SortableBucket<V>

@ProtoTypeId(5302) public class ListBucket<V> extends Object implements SortableBucket<V>
Bucket used to store ListMultimap values.
Since:
15.0
Author:
Katia Aresti
  • Constructor Details

    • ListBucket

      public ListBucket()
    • ListBucket

      public ListBucket(V value)
  • Method Details

    • create

      public static <V> ListBucket<V> create(Collection<V> value)
    • contains

      public boolean contains(V value)
    • isEmpty

      public boolean isEmpty()
    • size

      public long size()
    • toDeque

      public Deque<V> toDeque()
      Returns:
      a defensive copy of the values collection.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • offer

      public ListBucket<V> offer(Collection<V> value, boolean first)
    • set

      public ListBucket<V> set(long index, V value)
    • sublist

      public Collection<V> sublist(long from, long to)
    • trim

      public void trim(long from, long to)
    • indexOf

      public Collection<Long> indexOf(V element, long count, long rank, long maxLen)
    • insert

      public ListBucket<V> insert(boolean before, V pivot, V element)
    • remove

      public long remove(long count, V element)
    • rotate

      public V rotate(boolean rotateRight)
    • stream

      public Stream<org.infinispan.multimap.impl.internal.MultimapObjectWrapper<V>> stream()
      Specified by:
      stream in interface SortableBucket<V>
    • sort

      public List<ScoredValue<V>> sort(SortableBucket.SortOptions sortOptions)
      Specified by:
      sort in interface SortableBucket<V>
    • replace

      public void replace(List<V> list)
    • poll

      public ListBucket<V>.ListBucketResult poll(boolean first, long count)
    • index

      public V index(long index)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object