@Html(render=Species.SpeciesRender.class) public enum Species extends Enum<Species>
Modifier and Type | Class and Description |
---|---|
static class |
Species.SpeciesRender
Used to control how this enum is rendered in HTML view.
|
Enum Constant and Description |
---|
BIRD |
CAT |
DOG |
FISH |
MOUSE |
RABBIT |
SNAKE |
Modifier and Type | Method and Description |
---|---|
static Species |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Species[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Species[] values()
for (Species c : Species.values()) System.out.println(c);
public static Species 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 nullCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.