public enum Weighting extends Enum<Weighting>
A simple enum which gives symbolic names to the ideas of "weighted" and "unweighted", to make various API calls which take a weighting parameter more readable.
Enum Constant and Description |
---|
UNWEIGHTED |
WEIGHTED |
Modifier and Type | Method and Description |
---|---|
static Weighting |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weighting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Weighting WEIGHTED
public static final Weighting UNWEIGHTED
public static Weighting[] values()
for (Weighting c : Weighting.values()) System.out.println(c);
public static Weighting 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 © 2008–2015 The Apache Software Foundation. All rights reserved.