public static enum DistanceEvaluator.DistanceType extends Enum<DistanceEvaluator.DistanceType>
Enum Constant and Description |
---|
canberra |
earthMovers |
euclidean |
manhattan |
Modifier and Type | Method and Description |
---|---|
static DistanceEvaluator.DistanceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistanceEvaluator.DistanceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistanceEvaluator.DistanceType euclidean
public static final DistanceEvaluator.DistanceType manhattan
public static final DistanceEvaluator.DistanceType canberra
public static final DistanceEvaluator.DistanceType earthMovers
public static DistanceEvaluator.DistanceType[] values()
for (DistanceEvaluator.DistanceType c : DistanceEvaluator.DistanceType.values()) System.out.println(c);
public static DistanceEvaluator.DistanceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.