インターフェース SearchMatchResult

すべての既知の実装クラス:
SearchMatchResult.DefaultResult

public interface SearchMatchResult
SearchMatch で使用されるインターフェース定義結果。
作成者:
Janne Valkealahti, Piotr Olaszewski
  • 方法の詳細

    • getStart

      int getStart()
      試合を開始します。
      戻り値:
      試合の始まり
    • getEnd

      int getEnd()
      試合を終了します。
      戻り値:
      マッチの終わり
    • getScore

      int getScore()
      試合のスコアを取得します。
      戻り値:
      試合のスコア
    • getPositions

      int[] getPositions()
      試合の順位を取得します。
      戻り値:
      試合の順位
    • getAlgorithm

      @Nullable SearchMatchAlgorithm getAlgorithm()
      検索を処理する SearchMatchAlgorithm を取得します。
      戻り値:
      SearchMatchAlgorithm が検索を処理しています
    • of

      static SearchMatchResult of(int start, int end, int score, int[] positions, @Nullable SearchMatchAlgorithm algo)
      指定されたパラメーターを使用して SearchMatchResult を構築します。
      パラメーター:
      start - 開始
      end - 終わり
      score - スコア
      positions - ポジション
      戻り値:
      検索一致結果
    • ofZeros

      static SearchMatchResult ofZeros()
    • ofMinus

      static SearchMatchResult ofMinus()