|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvanted.Parser
public class Parser
The Class Parser tries to parse objects into int or double.
Constructor Summary | |
---|---|
Parser()
|
Method Summary | |
---|---|
static java.lang.Object |
parse(java.lang.String str)
Try to parse the string to an int, if that dosen't work try to parse the string to a double, if that dosen't work return null. |
static double |
parse2Double(java.lang.String str)
Try to parse the string to a double, if that dosen't work return -1. |
static java.lang.Object |
parse2Int(java.lang.String str)
Try to parse the string to an int, if that dosen't work return the string. |
static int |
parse2Int2(java.lang.String str)
Try to parse the string to an int, if that dosen't work return -1. |
static java.lang.Object |
parseAttr(java.lang.String str)
Try to parse the string to an int, if that dosen't work try to parse the string to a double. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parser()
Method Detail |
---|
public static java.lang.Object parse(java.lang.String str)
str
- the str
public static java.lang.Object parse2Int(java.lang.String str)
str
- the str
public static int parse2Int2(java.lang.String str)
str
- the str
public static double parse2Double(java.lang.String str)
str
- the str
public static java.lang.Object parseAttr(java.lang.String str)
str
- the str
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |