|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
NumberType defines a base interface for all data types that manipulatae simple numeric values. As with all the other types, one of the main functions of all classes that implement NumberType is to convert number strings to number objects and back.
This interface defines the following operation sets:
SimpleNumberType clas.
NumberValue| Method Summary | |
byte |
byteValue(byte value)
Converts a byte value to an another byte value. |
byte |
byteValue(java.lang.String value,
java.text.ParsePosition status)
Converts a string to a byte value. |
double |
doubleValue(double value)
Converts a double value to an another double value. |
double |
doubleValue(java.lang.String value,
java.text.ParsePosition status)
Converts a string to a double value. |
float |
floatValue(float value)
Converts a float value to an another float value. |
float |
floatValue(java.lang.String value,
java.text.ParsePosition status)
Converts a string to a float value. |
int |
intValue(int value)
Converts a integer value to an another int value. |
int |
intValue(java.lang.String value,
java.text.ParsePosition status)
Converts a string to a int value. |
long |
longValue(long value)
Converts a long value to an another long value. |
long |
longValue(java.lang.String value,
java.text.ParsePosition status)
Converts a string to a long value. |
java.lang.Number |
numberValue(java.lang.String value,
java.text.ParsePosition status)
Converts a string to a Number value. |
short |
shortValue(short value)
Converts a short value to an another short value. |
short |
shortValue(java.lang.String value,
java.text.ParsePosition status)
Converts a string to a short value. |
java.lang.String |
stringValue(byte value)
Converts a byte value to a string. |
java.lang.String |
stringValue(double value)
Converts a double value to a string. |
java.lang.String |
stringValue(float value)
Converts a float value to a string. |
java.lang.String |
stringValue(int value)
Converts an integer value to a string. |
java.lang.String |
stringValue(long value)
Converts a long value to a string. |
java.lang.String |
stringValue(java.lang.Number value)
Converts a Number value to a string. |
java.lang.String |
stringValue(short value)
Converts a short value to a string. |
| Methods inherited from interface com.davisor.core.Dupable |
dup |
| Method Detail |
public byte byteValue(java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
value - the string to be convertedstatus - parse status (may be null)
InvalidDataException - if the value cannot
be converted to a byte value.
public double doubleValue(java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
value - the string to be convertedstatus - parse status (may be null)
InvalidDataException - if the value cannot
be converted to a double value.
public float floatValue(java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
value - the string to be convertedstatus - parse status (may be null)
InvalidDataException - if the value cannot
be converted to a float value.
public int intValue(java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
value - the string to be convertedstatus - parse status (may be null)
InvalidDataException - if the value cannot
be converted to a int value.
public long longValue(java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
value - the string to be convertedstatus - parse status (may be null)
InvalidDataException - if the value cannot
be converted to a long value.
public java.lang.Number numberValue(java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
value - the string to be converted (may be null)status - parse status (may be null)
null
InvalidDataException - if the value cannot
be converted to a long value.
public short shortValue(java.lang.String value,
java.text.ParsePosition status)
throws InvalidDataException
value - the string to be convertedstatus - parse status (may be null)
InvalidDataException - if the value cannot
be converted to a short value.
public java.lang.String stringValue(byte value)
throws InvalidDataException
value - the value to be converted
InvalidDataException - if the value cannot
be converted
public java.lang.String stringValue(double value)
throws InvalidDataException
value - the value to be converted
InvalidDataException - if the value cannot
be converted
public java.lang.String stringValue(float value)
throws InvalidDataException
value - the value to be converted
InvalidDataException - if the value cannot
be converted
public java.lang.String stringValue(int value)
throws InvalidDataException
value - the value to be converted
InvalidDataException - if the value cannot
be converted
public java.lang.String stringValue(long value)
throws InvalidDataException
value - the value to be converted
InvalidDataException - if the value cannot
be converted
public java.lang.String stringValue(short value)
throws InvalidDataException
value - the value to be converted
InvalidDataException - if the value cannot
be converted
public java.lang.String stringValue(java.lang.Number value)
throws InvalidDataException
value - the value to be converted
InvalidDataException - if the value cannot
be convertedpublic byte byteValue(byte value)
value - the value to be convertedpublic double doubleValue(double value)
value - the value to be convertedpublic float floatValue(float value)
value - the value to be convertedpublic int intValue(int value)
value - the value to be convertedpublic long longValue(long value)
value - the value to be convertedpublic short shortValue(short value)
value - the value to be converted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||