Class FuzzyScorer.ScoredEntry
java.lang.Object
org.aesh.readline.fuzzy.FuzzyScorer.ScoredEntry
- Enclosing class:
FuzzyScorer
A scored entry: an input text with its fuzzy match result and original index.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intIndex in the deduplicated list (0 = most recent).final FuzzyResultThe fuzzy match result.final int[]The entry text as code points.final longTimestamp (epoch millis) when the entry was added, or -1 if unknown. -
Constructor Summary
ConstructorsConstructorDescriptionScoredEntry(int index, int[] text, FuzzyResult match) Create a scored entry with no timestamp.ScoredEntry(int index, int[] text, FuzzyResult match, long timestamp) Create a scored entry with a timestamp. -
Method Summary
-
Field Details
-
index
public final int indexIndex in the deduplicated list (0 = most recent). -
text
public final int[] textThe entry text as code points. -
match
The fuzzy match result. -
timestamp
public final long timestampTimestamp (epoch millis) when the entry was added, or -1 if unknown.
-
-
Constructor Details
-
ScoredEntry
Create a scored entry with no timestamp.- Parameters:
index- index in the deduplicated list (0 = most recent)text- the entry text as code pointsmatch- the fuzzy match result
-
ScoredEntry
Create a scored entry with a timestamp.- Parameters:
index- index in the deduplicated list (0 = most recent)text- the entry text as code pointsmatch- the fuzzy match resulttimestamp- epoch millis when the entry was added, or -1 if unknown
-