public static enum Spill.Measurement extends Enum<Spill.Measurement>
Enum Constant and Description |
---|
CHEBYSHEV
The distance it takes when diagonal movement costs the same as
cardinal movement.
|
EUCLIDEAN
The distance it takes as the crow flies.
|
MANHATTAN
The distance it takes when only the four primary directions can be
moved in.
|
Modifier and Type | Method and Description |
---|---|
static Spill.Measurement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Spill.Measurement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Spill.Measurement MANHATTAN
public static final Spill.Measurement CHEBYSHEV
public static final Spill.Measurement EUCLIDEAN
public static Spill.Measurement[] values()
for (Spill.Measurement c : Spill.Measurement.values()) System.out.println(c);
public static Spill.Measurement 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 © 2012–2016. All rights reserved.