インターフェース SearchMatchResult
- すべての既知の実装クラス:
SearchMatchResult.DefaultResult
public interface SearchMatchResult
SearchMatch で使用されるインターフェース定義結果。- 作成者:
- Janne Valkealahti, Piotr Olaszewski
ネストされたクラスの概要
ネストされたクラス方法の概要
修飾子と型メソッド説明@Nullable SearchMatchAlgorithm検索を処理するSearchMatchAlgorithmを取得します。intgetEnd()試合を終了します。int[]試合の順位を取得します。intgetScore()試合のスコアを取得します。intgetStart()試合を開始します。static SearchMatchResultof(int start, int end, int score, int[] positions, @Nullable SearchMatchAlgorithm algo) 指定されたパラメーターを使用してSearchMatchResultを構築します。static SearchMatchResultofMinus()static SearchMatchResultofZeros()
方法の詳細
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
ofMinus