public enum Locality extends Enum<Locality>
| Enum Constant and Description | 
|---|
| NODE_LOCAL | 
| OFF_SWITCH | 
| RACK_LOCAL | 
| Modifier and Type | Method and Description | 
|---|---|
| static Locality | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Locality[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Locality NODE_LOCAL
public static final Locality RACK_LOCAL
public static final Locality OFF_SWITCH
public static Locality[] values()
for (Locality c : Locality.values()) System.out.println(c);
public static Locality 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–2023 Apache Software Foundation. All rights reserved.