public abstract class MatchResult extends java.lang.Object implements java.lang.Comparable<MatchResult>
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Predicate<MatchResult> |
ARE_EXACT_MATCH |
| Constructor and Description |
|---|
MatchResult() |
| Modifier and Type | Method and Description |
|---|---|
static MatchResult |
aggregate(java.util.List<MatchResult> matchResults) |
static MatchResult |
aggregate(MatchResult... matches) |
int |
compareTo(MatchResult other) |
static MatchResult |
exactMatch() |
abstract double |
getDistance() |
abstract boolean |
isExactMatch() |
static MatchResult |
noMatch() |
static MatchResult |
of(boolean isMatch) |
static MatchResult |
partialMatch(double distance) |
public static final com.google.common.base.Predicate<MatchResult> ARE_EXACT_MATCH
public static MatchResult partialMatch(double distance)
public static MatchResult exactMatch()
public static MatchResult noMatch()
public static MatchResult of(boolean isMatch)
public static MatchResult aggregate(java.util.List<MatchResult> matchResults)
public static MatchResult aggregate(MatchResult... matches)
public abstract boolean isExactMatch()
public abstract double getDistance()
public int compareTo(MatchResult other)
compareTo in interface java.lang.Comparable<MatchResult>