public enum YesOrNoEnum extends Enum<YesOrNoEnum>
| Modifier and Type | Method and Description |
|---|---|
static YesOrNoEnum |
getEnumById(Integer id) |
Integer |
getId() |
String |
getName() |
static YesOrNoEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YesOrNoEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YesOrNoEnum YES
public static final YesOrNoEnum NO
public final int id
public final String name
public static YesOrNoEnum[] values()
for (YesOrNoEnum c : YesOrNoEnum.values()) System.out.println(c);
public static YesOrNoEnum 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 Integer getId()
public String getName()
public static YesOrNoEnum getEnumById(Integer id)
Copyright © 2018. All rights reserved.