public enum AvailabilityType extends Enum<AvailabilityType>
| Modifier and Type | Method and Description |
|---|---|
static AvailabilityType |
fromByte(byte value) |
static AvailabilityType |
fromBytes(ByteBuffer bytes) |
static AvailabilityType |
fromString(String s) |
byte |
getCode() |
String |
getText() |
String |
toString() |
static AvailabilityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AvailabilityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AvailabilityType UP
public static final AvailabilityType DOWN
public static final AvailabilityType UNKNOWN
public static final AvailabilityType ADMIN
public static AvailabilityType[] values()
for (AvailabilityType c : AvailabilityType.values()) System.out.println(c);
public static AvailabilityType 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 byte getCode()
public String getText()
public String toString()
toString in class Enum<AvailabilityType>public static AvailabilityType fromString(String s)
public static AvailabilityType fromBytes(ByteBuffer bytes)
public static AvailabilityType fromByte(byte value)
Copyright © 2014–2018 Red Hat, Inc.. All rights reserved.