java.lang.Object
ch.ivyteam.ivy.business.data.store.search.Scored<T>
Type Parameters:
T -

public class Scored<T> extends Object
Holds a scored result value
Since:
6.5
See Also:
  • Result.getAllWithScore()
API:
This is a public API.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the result score.
    Gets the result value
    boolean
    True if a score is available
  • Method Details

    • getValue

      public T getValue()
      Gets the result value
      Returns:
      result value
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • getScore

      public double getScore()
      Gets the result score. The higher the better.
      Returns:
      result score
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • hasScore

      public boolean hasScore()
      True if a score is available
      Returns:
      true if a score is available
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.