Class Scored<T>
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getScore()
Gets the result score.T
getValue()
Gets the result valueboolean
hasScore()
True if a score is available
-
-
-
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.
-
-