org.webmacro.util
Class CastUtil
java.lang.Object
org.webmacro.util.CastUtil
- public class CastUtil
- extends java.lang.Object
- Since:
- 0.96
- Author:
- keats_kirsch
Method Summary |
static CastUtil |
getInstance()
|
static void |
main(java.lang.String[] args)
|
static java.lang.Boolean |
toBoolean(java.lang.Object o)
|
static java.lang.Byte |
toByte(java.lang.Object o)
|
static java.lang.Character |
toChar(java.lang.Object o)
|
static java.lang.Double |
toDouble(java.lang.Object o)
|
static java.lang.Float |
toFloat(java.lang.Object o)
|
static java.lang.Integer |
toInt(java.lang.Object o)
|
static java.lang.Long |
toLong(java.lang.Object o)
|
static java.lang.Short |
toShort(java.lang.Object o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
CHAR
public static final int CHAR
- See Also:
- Constant Field Values
BYTE
public static final int BYTE
- See Also:
- Constant Field Values
SHORT
public static final int SHORT
- See Also:
- Constant Field Values
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
LONG
public static final int LONG
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
getInstance
public static CastUtil getInstance()
toBoolean
public static java.lang.Boolean toBoolean(java.lang.Object o)
toChar
public static java.lang.Character toChar(java.lang.Object o)
throws PropertyException
- Throws:
PropertyException
toByte
public static java.lang.Byte toByte(java.lang.Object o)
toShort
public static java.lang.Short toShort(java.lang.Object o)
toInt
public static java.lang.Integer toInt(java.lang.Object o)
toLong
public static java.lang.Long toLong(java.lang.Object o)
toFloat
public static java.lang.Float toFloat(java.lang.Object o)
toDouble
public static java.lang.Double toDouble(java.lang.Object o)
main
public static void main(java.lang.String[] args)