public final class Converter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fromBoolean(boolean val)
Converts the specified bool value to string.
|
static java.lang.String |
fromByte(long byteValue)
Converts the specified byte value to string.
|
static java.lang.String |
fromChar(char val)
Converts the specified char value to string.
|
static java.lang.String |
fromColor(java.awt.Color val)
Converts the specified color value to string in the format #AARRGGBB.
|
static java.lang.String |
fromColor2(java.awt.Color val)
Converts the specified color value to string in the format #RRGGBB.
|
static java.lang.String |
fromColor3(java.awt.Color val)
Converts the specified color value to string in the format AARRGGBB.
|
static java.lang.String |
fromColor4(java.awt.Color val)
Converts the specified color value to string in the format RRGGBB.
|
static java.lang.String |
fromDecimal(java.math.BigDecimal val)
Converts the specified decimal to string.
|
static java.lang.String |
fromDouble(double val)
Converts the specified double value to string.
|
static java.lang.String |
fromImage(java.awt.Image val)
Converts the specified image to string.
|
static java.lang.String |
fromInt(int val)
Converts the specified integer value to string.
|
static java.lang.String |
fromInt(long val)
Converts the specified long value to string.
|
static java.lang.String |
fromLong(long val)
Converts the specified long value to string.
|
static java.lang.String |
fromShort(short val)
Converts the specified short value to string.
|
static java.lang.String |
fromSingle(float val)
Converts the specified float value to string.
|
static boolean |
toBoolean(java.lang.String s)
Converts the specified string value to bool.
|
static byte |
toByte(java.lang.String s)
Converts the specified string value to byte value.
|
static char |
toChar(java.lang.String s)
Converts the specified string value to char.
|
static java.awt.Color |
toColor(java.lang.String s)
Converts the specified string value to Color.
|
static java.awt.Color |
toColor(java.lang.String s,
java.awt.Color defaultValue) |
static java.math.BigDecimal |
toDecimal(java.lang.String s)
Converts the specified string value to decimal.
|
static double |
toDouble(java.lang.String s)
Converts the specified string value to double.
|
static java.awt.Image |
toImage(java.lang.String s)
Converts the specified string value to image.
|
static int |
toInt(java.lang.String s)
Converts the specified string value to an integer.
|
static int |
toInt(java.lang.String s,
int defaultValue) |
static long |
toLong(java.lang.String s)
Converts the specified string value to long.
|
static short |
toShort(java.lang.String s)
Converts the specified string value to unsigned 16-bit integer.
|
static float |
toSingle(java.lang.String s)
Converts the specified string value to float.
|
public static boolean toBoolean(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromBoolean(boolean val)
val - The value to convert.public static java.math.BigDecimal toDecimal(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromDecimal(java.math.BigDecimal val)
val - The value to convert.public static float toSingle(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromSingle(float val)
val - The value to convert.public static double toDouble(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromDouble(double val)
val - The value to convert.public static byte toByte(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromByte(long byteValue)
byteValue - The value to convert.public static short toShort(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromShort(short val)
val - The value to convert.public static int toInt(java.lang.String s)
s - The string value to convert from.public static int toInt(java.lang.String s,
int defaultValue)
public static java.lang.String fromInt(int val)
val - The value to convert.public static java.lang.String fromInt(long val)
val - The value to convert.public static long toLong(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromLong(long val)
val - The value to convert.public static char toChar(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromChar(char val)
val - The value to convert.public static java.awt.Color toColor(java.lang.String s)
s - The string value to convert from.public static java.awt.Color toColor(java.lang.String s,
java.awt.Color defaultValue)
public static java.lang.String fromColor(java.awt.Color val)
val - The value to convert.public static java.lang.String fromColor2(java.awt.Color val)
val - The value to convert.public static java.lang.String fromColor3(java.awt.Color val)
val - The value to convert.public static java.lang.String fromColor4(java.awt.Color val)
val - The value to convert.public static java.awt.Image toImage(java.lang.String s)
s - The string value to convert from.public static java.lang.String fromImage(java.awt.Image val)
val - The image object to convert.