MatchResult

public class MatchResult implements Comparable

Class MatchResult. Provides matchresult functionality for the Hytale server.

java.lang.Object > MatchResult

Field Summary

that

final MatchResult that

Field that.

Method Detail

of

static MatchResult of (final int termDepth, final int depth, final int type, @Nonnull final String text, @Nonnull final String search)

Method of.

Parameters:
final int termDepth
final int depth
final int type
@Nonnull final String text
@Nonnull final String search

MatchResult

public new MatchResult (termDepth, depth, type, StringCompareUtil.getLevenshteinDistance(text, search)

Method MatchResult.

Parameters:
termDepth termDepth
depth depth
type type
StringCompareUtil.getLevenshteinDistance(text StringCompareUtil.getLevenshteinDistance(text
search search

getDepth

public int getDepth ()

Method getDepth.

getType

public int getType ()

Method getType.

getMatch

public int getMatch ()

Method getMatch.

min

Method min.

Parameters:
@Nonnull final MatchResult other

compareTo

public int compareTo (@Nonnull final MatchResult o)

Method compareTo.

Parameters:
@Nonnull final MatchResult o

equals

public boolean equals (@Nullable final Object o)

Method equals.

Parameters:
@Nullable final Object o

hashCode

public int hashCode ()

Method hashCode.

toString

public String toString ()

Method toString.