public enum Mark extends java.lang.Enum<Mark> implements EnumConverter<Mark>
Modifier and Type | Method and Description |
---|---|
static Mark |
from(java.lang.String value) |
java.lang.String |
to(Mark v) |
static Mark |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mark[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Mark[] values()
for (Mark c : Mark.values()) System.out.println(c);
public static Mark valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Mark from(java.lang.String value)
public java.lang.String to(Mark v)
to
in interface EnumConverter<Mark>