Interface SearchMatchResult

All Known Implementing Classes:
SearchMatchResult.DefaultResult

public interface SearchMatchResult
Interface defining result used in SearchMatch.
  • Method Details

    • getStart

      int getStart()
      Get start of a match.
      Returns:
      a start of a match
    • getEnd

      int getEnd()
      Get end of a match.
      Returns:
      a end of a matchh
    • getScore

      int getScore()
      Get score of a match.
      Returns:
      a score of a match
    • getPositions

      int[] getPositions()
      Get positions of a match.
      Returns:
      a positions of a match
    • getAlgorithm

      SearchMatchAlgorithm getAlgorithm()
      Get SearchMatchAlgorithm handling a search.
      Returns:
      SearchMatchAlgorithm handling a search
    • of

      static SearchMatchResult of(int start, int end, int score, int[] positions, SearchMatchAlgorithm algo)
      Construct SearchMatchResult with given parameters.
      Parameters:
      start - the start
      end - the end
      score - the score
      positions - the positions
      Returns:
      a search match result
    • ofZeros

      static SearchMatchResult ofZeros()
    • ofMinus

      static SearchMatchResult ofMinus()