| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this value is non-zero (or
true if already a BooleanValue); false otherwise.Converts this value to a BooleanValue and returns the result as a boolean. |
| public byte | Returns: the value, converted to byteConverts this value to a ByteValue and returns the result as a byte. |
| public char | Returns: the value, converted to charConverts this value to a CharValue and returns the result as a char. |
| public double | Returns: the value, converted to doubleConverts this value to a DoubleValue and returns the result as a double. |
| public float | Returns: the value, converted to floatConverts this value to a FloatValue and returns the result as a float. |
| public int | Returns: the value, converted to intConverts this value to an IntegerValue and returns the result as an int. |
| public long | Returns: the value, converted to longConverts this value to a LongValue and returns the result as a long. |
| public short | Returns: the value, converted to shortConverts this value to a ShortValue and returns the result as a short. |
| booleanValue | back to summary |
|---|---|
| public boolean booleanValue() Converts this value to a BooleanValue and returns the result as a boolean.
| |
| byteValue | back to summary |
|---|---|
| public byte byteValue() Converts this value to a ByteValue and returns the result as a byte. The value will be narrowed as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a byte).
| |
| charValue | back to summary |
|---|---|
| public char charValue() Converts this value to a CharValue and returns the result as a char. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a char, in the narrowing case).
| |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Converts this value to a DoubleValue and returns the result as a double. The value will be widened as necessary, and precision information may be lost.
| |
| floatValue | back to summary |
|---|---|
| public float floatValue() Converts this value to a FloatValue and returns the result as a float. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a float, in the narrowing case).
| |
| intValue | back to summary |
|---|---|
| public int intValue() Converts this value to an IntegerValue and returns the result as an int. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to an int, in the narrowing case).
| |
| longValue | back to summary |
|---|---|
| public long longValue() Converts this value to a LongValue and returns the result as a long. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a long, in the narrowing case).
| |
| shortValue | back to summary |
|---|---|
| public short shortValue() Converts this value to a ShortValue and returns the result as a short. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a short, in the narrowing case).
| |