public enum Animation extends Enum<Animation>
Modifier and Type | Method and Description |
---|---|
static Animation |
fromValue(String type)
convert a String value to enum Type
|
String |
toString()
return the enum Type as a String
|
String |
value()
return the enum value as a String
|
static Animation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Animation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Animation BOUNCE
public static final Animation DROP
public static Animation[] values()
for (Animation c : Animation.values()) System.out.println(c);
public static Animation 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 String value()
public static Animation fromValue(String type)
type
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.