Class FuzzyScorer.ScoredEntry

java.lang.Object
org.aesh.readline.fuzzy.FuzzyScorer.ScoredEntry
Enclosing class:
FuzzyScorer

public static final class FuzzyScorer.ScoredEntry extends Object
A scored entry: an input text with its fuzzy match result and original index.
  • Field Details

    • index

      public final int index
      Index in the deduplicated list (0 = most recent).
    • text

      public final int[] text
      The entry text as code points.
    • match

      public final FuzzyResult match
      The fuzzy match result.
    • timestamp

      public final long timestamp
      Timestamp (epoch millis) when the entry was added, or -1 if unknown.
  • Constructor Details

    • ScoredEntry

      public ScoredEntry(int index, int[] text, FuzzyResult match)
      Create a scored entry with no timestamp.
      Parameters:
      index - index in the deduplicated list (0 = most recent)
      text - the entry text as code points
      match - the fuzzy match result
    • ScoredEntry

      public ScoredEntry(int index, int[] text, FuzzyResult match, long timestamp)
      Create a scored entry with a timestamp.
      Parameters:
      index - index in the deduplicated list (0 = most recent)
      text - the entry text as code points
      match - the fuzzy match result
      timestamp - epoch millis when the entry was added, or -1 if unknown