java.lang.Object com.realtime.crossfire.jxclient.stats.StatsParser
public class StatsParser
Utility class to parse stat names.
Field Summary | |
---|---|
private static java.util.Map<java.lang.String,java.lang.Integer> |
STAT_TABLE
Maps stat names to stat index values. |
Constructor Summary | |
---|---|
private |
StatsParser()
Private constructor to prevent instantiation. |
Method Summary | |
---|---|
static int |
parseStat(java.lang.String name)
Convert a stat name into a stat index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private static final java.util.Map<java.lang.String,java.lang.Integer> STAT_TABLE
Constructor Detail |
---|
private StatsParser()
Method Detail |
---|
public static int parseStat(@NotNull java.lang.String name)
name
- The stat name.
java.lang.IllegalArgumentException
- if the stat name is undefined