|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Tool
An int wrapper class that specifies the type of tool currently in use. All the tool type static ints are defined here.
Constructor Summary | |
(package private) |
Tool(int _type)
Makes a new tool obejct with a type corresponding to the int passed in, which should be one of the static ints defined in this class. |
Method Summary | |
static boolean |
equals(Tool t1,
Tool t2)
Checks if two tools have equal type. |
java.lang.String |
getName()
Returns a string containing the name for the tool type |
int |
getType()
Gets the type int of the tool. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
Tool(int _type)
_type
- the type intMethod Detail |
public int getType()
public static boolean equals(Tool t1, Tool t2)
tool1
- the first tool to checktool2
- the second tool to checkpublic java.lang.String getName()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |