public static enum Empty._Field extends Enum<Empty._Field> implements PField
Modifier and Type | Method and Description |
---|---|
static Empty._Field |
fieldForId(int id) |
static Empty._Field |
fieldForName(String name) |
static Empty._Field |
findById(int id) |
static Empty._Field |
findByName(String name) |
Object |
getDefaultValue() |
PDescriptor |
getDescriptor() |
int |
getId() |
String |
getName() |
PRequirement |
getRequirement() |
boolean |
hasDefaultValue() |
String |
toString() |
static Empty._Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Empty._Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Empty._Field[] values()
for (Empty._Field c : Empty._Field.values()) System.out.println(c);
public static Empty._Field 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 getId()
public PRequirement getRequirement()
getRequirement
in interface PField
public PDescriptor getDescriptor()
getDescriptor
in interface PField
public String getName()
public boolean hasDefaultValue()
hasDefaultValue
in interface PField
public Object getDefaultValue()
getDefaultValue
in interface PField
public String toString()
toString
in class Enum<Empty._Field>
public static Empty._Field findById(int id)
id
- Field namepublic static Empty._Field findByName(String name)
name
- Field namepublic static Empty._Field fieldForId(int id)
id
- Field nameIllegalArgumentException
- If no such fieldpublic static Empty._Field fieldForName(String name)
name
- Field nameIllegalArgumentException
- If no such fieldCopyright © 2015–2018 morimekta.net. All rights reserved.