public enum ResultFilter extends java.lang.Enum<ResultFilter>
| Enum Constant and Description |
|---|
ALL
Return all results sorted by the score.
|
GAP
Filter the search results by the gap between the lowest and the highest score.
|
HIGHEST
Only return the highest scored results.
|
| Modifier and Type | Method and Description |
|---|---|
static ResultFilter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResultFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultFilter ALL
public static final ResultFilter GAP
filter(result -> result.score >= minScore + ceil((maxScore - minScore) / 2F)public static final ResultFilter HIGHEST
public static ResultFilter[] values()
for (ResultFilter c : ResultFilter.values()) System.out.println(c);
public static ResultFilter valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null