Class SetBucket<V>

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

@ProtoTypeId(5305) public class SetBucket<V> extends Object implements SortableBucket<V>
Bucket used to store Set data type.
Since:
15.0
Author:
Vittorio Rigamonti
  • Constructor Details

    • SetBucket

      public SetBucket()
    • SetBucket

      public SetBucket(V value)
    • SetBucket

      public SetBucket(Set<V> values)
  • Method Details

    • create

      public static <V> SetBucket<V> create(V value)
    • contains

      public boolean contains(V value)
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • toSet

      public Set<V> toSet()
      Returns:
      a defensive copy of the values collection.
    • toList

      public List<V> toList()
    • toString

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

      public boolean add(V value)
    • remove

      public boolean remove(V value)
    • addAll

      public boolean addAll(Collection<V> values)
    • removeAll

      public boolean removeAll(Collection<V> values)
    • 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>
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object