public final class ToolType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ToolType |
AXE |
private java.lang.String |
name |
static ToolType |
PICKAXE |
static ToolType |
SHOVEL |
private static java.util.regex.Pattern |
VALID_NAME |
private static java.util.Map<java.lang.String,ToolType> |
values |
Modifier | Constructor and Description |
---|---|
private |
ToolType(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static ToolType |
get(java.lang.String name) |
java.lang.String |
getName() |
private static final java.util.regex.Pattern VALID_NAME
private static final java.util.Map<java.lang.String,ToolType> values
public static final ToolType AXE
public static final ToolType PICKAXE
public static final ToolType SHOVEL
private final java.lang.String name
public static ToolType get(java.lang.String name)
public java.lang.String getName()