|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.twonky.StringConvert
public class StringConvert
| Constructor Summary | |
|---|---|
StringConvert()
|
|
| Method Summary | |
|---|---|
static Double |
toDouble(String string)
Converts the given string to a double. |
static Double |
toDouble(String string,
Double defaultValue)
Converts the given string to a double. |
static Integer |
toInteger(String string)
Converts the given string to an integer. |
static Integer |
toInteger(String string,
Integer defaultValue)
Converts the given string to an integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringConvert()
| Method Detail |
|---|
public static Integer toInteger(String string,
Integer defaultValue)
string - the sting to convert.defaultValue - a default value to use if string does not
represent a valid integer.
public static Integer toInteger(String string)
string - the string to convert.
public static Double toDouble(String string,
Double defaultValue)
string - the string to convert.defaultValue - a default value to use if string does not
represent a valid double.
public static Double toDouble(String string)
string - the string to convert.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||