JShort extension type

from: java.lang.Short

on
Implemented types
Available extensions

Constructors

JShort(int s)
from: public void <init>(short s) The returned object must be released after use, by calling the release method.
factory

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()
byteValue() int

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

from: public byte byteValue()
compareTo(JShort? short) int

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

from: public int compareTo(java.lang.Short short)
doubleValue() double

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

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

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

from: public double doubleValue()
equals(JObject? object) bool

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

from: public boolean equals(java.lang.Object object)
floatValue() double

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

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

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

from: public float floatValue()
hashCode$1() int

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

from: public int hashCode()
intValue() int

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

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

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

from: public 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()
longValue() int

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

from: public 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()
shortValue() int

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

from: public short shortValue()
toDartInt({bool releaseOriginal = false}) int

Available on JShort, provided by the JShortExtension extension

Returns the value as a Dart int.
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
toString$1() JString?

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

from: public java.lang.String toString() The returned object must be released after use, by calling the release method.
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 <(JShort? short) bool

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

operator <=(JShort? short) bool

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

operator ==(Object other) bool
The equality operator.
inherited
operator >(JShort? short) bool

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

operator >=(JShort? short) bool

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

Static Properties

TYPE JClass?
from: static public final java.lang.Class<java.lang.Short> TYPE The returned object must be released after use, by calling the release method.
no setter

Static Methods

compare(int s, int s1) int
from: static public int compare(short s, short s1)
compareUnsigned(int s, int s1) int
from: static public int compareUnsigned(short s, short s1)
decode(JString? string) JShort?
from: static public java.lang.Short decode(java.lang.String string) The returned object must be released after use, by calling the release method.
hashCode$2(int s) int
from: static public int hashCode(short s)
parseShort(JString? string) int
from: static public short parseShort(java.lang.String string)
parseShort$1(JString? string, int i) int
from: static public short parseShort(java.lang.String string, int i)
reverseBytes(int s) int
from: static public short reverseBytes(short s)
toString$2(int s) JString?
from: static public java.lang.String toString(short s) The returned object must be released after use, by calling the release method.
toUnsignedInt(int s) int
from: static public int toUnsignedInt(short s)
toUnsignedLong(int s) int
from: static public long toUnsignedLong(short s)
valueOf(JString? string) JShort?
from: static public java.lang.Short valueOf(java.lang.String string) The returned object must be released after use, by calling the release method.
valueOf$1(JString? string, int i) JShort?
from: static public java.lang.Short valueOf(java.lang.String string, int i) The returned object must be released after use, by calling the release method.
valueOf$2(int s) JShort?
from: static public java.lang.Short valueOf(short s) The returned object must be released after use, by calling the release method.

Constants

BYTES → const int
from: static public final int BYTES
MAX_VALUE → const int
from: static public final short MAX_VALUE
MIN_VALUE → const int
from: static public final short MIN_VALUE
SIZE → const int
from: static public final int SIZE
type → const JType<JShort>
The type which includes information such as the signature of this class.