|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.matthiasmann.twl.renderer.AnimationState.StateKey
public static final class AnimationState.StateKey
An animation state key which maps each animation state name to an unique ID. This allows to implement faster lookups based on the unique ID instead of performing a string lookup.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
static AnimationState.StateKey |
get(int id)
Returns the StateKey for the specified id. |
static AnimationState.StateKey |
get(java.lang.String name)
Returns the StateKey for the specified name. |
int |
getID()
The unique ID of this StateKey. |
java.lang.String |
getName()
The name of this animation state key |
static int |
getNumStateKeys()
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
public int getID()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static AnimationState.StateKey get(java.lang.String name)
name - the name to look up
java.lang.IllegalArgumentException - if name is empty
java.lang.NullPointerException - if name is nullpublic static AnimationState.StateKey get(int id)
id - the ID to lookup
java.lang.IndexOutOfBoundsException - if the ID is invalidpublic static int getNumStateKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||