public enum Metrics extends Enum<Metrics> implements Metric
Metric
s supported by Redis.Enum Constant and Description |
---|
FEET |
KILOMETERS |
METERS |
MILES |
Modifier and Type | Method and Description |
---|---|
String |
getAbbreviation() |
double |
getMultiplier() |
static Metrics |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Metrics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Metrics METERS
public static final Metrics KILOMETERS
public static final Metrics MILES
public static final Metrics FEET
public static Metrics[] values()
for (Metrics c : Metrics.values()) System.out.println(c);
public static Metrics 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 nullpublic double getMultiplier()
getMultiplier
in interface Metric
public String getAbbreviation()
getAbbreviation
in interface Metric
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.