public enum SerfStatusEnum extends Enum<SerfStatusEnum>
Enum Constant and Description |
---|
StatusAlive |
StatusFailed |
StatusLeaving |
StatusLeft |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static SerfStatusEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerfStatusEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerfStatusEnum StatusAlive
public static final SerfStatusEnum StatusLeaving
public static final SerfStatusEnum StatusLeft
public static final SerfStatusEnum StatusFailed
public static SerfStatusEnum[] values()
for (SerfStatusEnum c : SerfStatusEnum.values()) System.out.println(c);
public static SerfStatusEnum 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 int getCode()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.