public interface Convertible
Modifier and Type | Method and Description |
---|---|
boolean |
toBoolean(java.util.Locale locale)
Converts the value of this instance to an equivalent boolean value using
the specified culture-specific formatting information.
|
byte |
toByte(java.util.Locale locale)
Converts the value of this instance to an equivalent byte value using
the specified culture-specific formatting information.
|
char |
toChar(java.util.Locale locale)
Converts the value of this instance to an equivalent char value using
the specified culture-specific formatting information.
|
DateTime |
toDateTime(java.util.Locale locale)
Converts the value of this instance to an equivalent
DateTime value using
the specified culture-specific formatting information. |
java.math.BigDecimal |
toDecimal(java.util.Locale locale)
Converts the value of this instance to an equivalent big integer value using
the specified culture-specific formatting information.
|
double |
toDouble(java.util.Locale locale)
Converts the value of this instance to an equivalent double value using
the specified culture-specific formatting information.
|
int |
toInt(java.util.Locale locale)
Converts the value of this instance to an equivalent integer value using
the specified culture-specific formatting information.
|
long |
toLong(java.util.Locale locale)
Converts the value of this instance to an equivalent long value using
the specified culture-specific formatting information.
|
short |
toShort(java.util.Locale locale)
Converts the value of this instance to an equivalent short value using
the specified culture-specific formatting information.
|
float |
toSingle(java.util.Locale locale)
Converts the value of this instance to an equivalent float value using
the specified culture-specific formatting information.
|
java.lang.String |
toString(java.util.Locale locale)
Converts the value of this instance to an equivalent string value using
the specified culture-specific formatting information.
|
<T> java.lang.Object |
toType(java.lang.Class<T> conversionType,
java.util.Locale locale)
Converts the value of this instance to an equivalent value of the specified type using
the specified culture-specific formatting information.
|
boolean toBoolean(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.byte toByte(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.char toChar(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.DateTime toDateTime(java.util.Locale locale)
DateTime
value using
the specified culture-specific formatting information.locale
- An object that supplies culture-specific formatting information.DateTime
value equivalent to the value of this instance.java.math.BigDecimal toDecimal(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.double toDouble(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.short toShort(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.int toInt(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.long toLong(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.float toSingle(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.java.lang.String toString(java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.<T> java.lang.Object toType(java.lang.Class<T> conversionType, java.util.Locale locale)
locale
- An object that supplies culture-specific formatting information.