public static enum Classification.Type extends java.lang.Enum<Classification.Type> implements java.util.Comparator<java.lang.Double>
| Enum Constant and Description |
|---|
CONFIDENCE |
DISTANCE |
PROBABILITY |
SIMILARITY |
VOTE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Double left,
java.lang.Double right)
Calculates the order between arguments.
|
java.lang.String |
entryKey() |
java.lang.Double |
getDefault()
Gets the least optimal value in the range of valid values.
|
com.google.common.collect.Ordering<java.lang.Double> |
getOrdering() |
com.google.common.collect.Range<java.lang.Double> |
getRange() |
boolean |
isValid(java.lang.Double value) |
static Classification.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Classification.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Classification.Type PROBABILITY
public static final Classification.Type CONFIDENCE
public static final Classification.Type DISTANCE
public static final Classification.Type SIMILARITY
public static final Classification.Type VOTE
public static Classification.Type[] values()
for (Classification.Type c : Classification.Type.values()) System.out.println(c);
public static Classification.Type 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 nullpublic int compare(java.lang.Double left,
java.lang.Double right)
Calculates the order between arguments.
compare in interface java.util.Comparator<java.lang.Double>left - A valueright - The reference valuepublic java.lang.Double getDefault()
Gets the least optimal value in the range of valid values.
public boolean isValid(java.lang.Double value)
public java.lang.String entryKey()
public com.google.common.collect.Ordering<java.lang.Double> getOrdering()
public com.google.common.collect.Range<java.lang.Double> getRange()
Copyright © 2017. All Rights Reserved.