JNumber extension type

from: java.lang.Number

on
Implemented types
Implementers
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
isReleased bool
no setterinherited
jClass JClass
Returns JClass corresponding to concrete class of this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

as<T extends JObject>(JType<T> type, {bool releaseOriginal = false}) → T
Casts this object to another type.
inherited
byteValue() int

Available on JNumber, provided by the JNumber$$Methods extension

from: public byte byteValue()
doubleValue() double

Available on JNumber, provided by the JNumber$$Methods extension

from: public abstract double doubleValue()
floatValue() double

Available on JNumber, provided by the JNumber$$Methods extension

from: public abstract float floatValue()
intValue() int

Available on JNumber, provided by the JNumber$$Methods extension

from: public abstract int intValue()
isA<T extends JObject>(JType<T> type) bool
Whether this object is of the given type ignoring the type parameters.
inherited
isInstanceOf(JClass jclass) bool
Whether this object is of the type of the given jclass.
inherited
longValue() int

Available on JNumber, provided by the JNumber$$Methods extension

from: public abstract long longValue()
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases the underlying reference.
inherited
releasedBy(Arena arena) → void
Registers this object to be released at the end of arena's lifetime.
inherited
shortValue() int

Available on JNumber, provided by the JNumber$$Methods extension

from: public short shortValue()
toJByte({bool releaseOriginal = false}) JByte

Available on JNumber, provided by the JNumberExtension extension

Coerces the value to a JByte.
toJDouble({bool releaseOriginal = false}) JDouble

Available on JNumber, provided by the JNumberExtension extension

Coerces the value to a JDouble.
toJFloat({bool releaseOriginal = false}) JFloat

Available on JNumber, provided by the JNumberExtension extension

Coerces the value to a JFloat.
toJInteger({bool releaseOriginal = false}) JInteger

Available on JNumber, provided by the JNumberExtension extension

Coerces the value to a JInteger.
toJLong({bool releaseOriginal = false}) JLong

Available on JNumber, provided by the JNumberExtension extension

Coerces the value to a JLong.
toJShort({bool releaseOriginal = false}) JShort

Available on JNumber, provided by the JNumberExtension extension

Coerces the value to a JShort.
toString() String
A string representation of this object.
inherited
use<R>(R callback(T)) → R

Available on T, provided by the JObjectUseExtension extension

Applies callback on this object and then delete the underlying JNI reference, returning the result of callback.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

type → const JType<JNumber>
The type which includes information such as the signature of this class.