Class ScoredValue<V>

java.lang.Object
org.infinispan.multimap.impl.ScoredValue<V>
All Implemented Interfaces:
Comparable<ScoredValue<V>>

@ProtoTypeId(5308) public class ScoredValue<V> extends Object implements Comparable<ScoredValue<V>>
  • Constructor Details

    • ScoredValue

      @ProtoFactory public ScoredValue(Double score, org.infinispan.multimap.impl.internal.MultimapObjectWrapper<V> wrappedValue)
  • Method Details

    • of

      public static <V> ScoredValue<V> of(double score, V value)
    • of

      public static <V> ScoredValue<V> of(double score)
    • score

      @ProtoField(1) public Double score()
    • wrappedValue

      @ProtoField(2) public org.infinispan.multimap.impl.internal.MultimapObjectWrapper<V> wrappedValue()
    • getValue

      public V getValue()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object entry)
      Overrides:
      equals in class Object
    • toString

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

      public int compareTo(ScoredValue<V> other)
      Specified by:
      compareTo in interface Comparable<V>