Class 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 Detail

      • 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.