public enum AffinityType extends Enum<AffinityType>
Enum Constant and Description |
---|
HDD |
SSD |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static AffinityType |
fromValue(String affinity) |
String |
toString() |
String |
value() |
static AffinityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AffinityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AffinityType HDD
public static final AffinityType SSD
public static final AffinityType UNRECOGNIZED
public static AffinityType[] values()
for (AffinityType c : AffinityType.values()) System.out.println(c);
public static AffinityType 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 String value()
public String toString()
toString
in class Enum<AffinityType>
public static AffinityType fromValue(String affinity)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.