JLong extension type

from: java.lang.Long

on
Implemented types
Available extensions

Constructors

JLong(int j)
from: public void <init>(long j) 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 JLong, provided by the JLong$$Methods extension

from: public byte byteValue()
byteValue() int

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

from: public byte byteValue()
compareTo(JLong? long) int

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

from: public int compareTo(java.lang.Long long)
doubleValue() double

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

from: public double doubleValue()
doubleValue() double

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

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

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

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

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

from: public float floatValue()
floatValue() double

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

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

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

from: public int hashCode()
intValue() int

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

from: public int intValue()
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 JLong, provided by the JLong$$Methods extension

from: public long longValue()
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 JLong, provided by the JLong$$Methods extension

from: public short shortValue()
shortValue() int

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

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

Available on JLong, provided by the JLongExtension 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 JLong, provided by the JLong$$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 <(JLong? long) bool

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

operator <=(JLong? long) bool

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

operator ==(Object other) bool
The equality operator.
inherited
operator >(JLong? long) bool

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

operator >=(JLong? long) bool

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

Static Properties

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

Static Methods

bitCount(int j) int
from: static public int bitCount(long j)
compare(int j, int j1) int
from: static public int compare(long j, long j1)
compareUnsigned(int j, int j1) int
from: static public int compareUnsigned(long j, long j1)
compress(int j, int j1) int
from: static public long compress(long j, long j1)
decode(JString? string) JLong?
from: static public java.lang.Long decode(java.lang.String string) The returned object must be released after use, by calling the release method.
divideUnsigned(int j, int j1) int
from: static public long divideUnsigned(long j, long j1)
expand(int j, int j1) int
from: static public long expand(long j, long j1)
getLong(JString? string) JLong?
from: static public java.lang.Long getLong(java.lang.String string) The returned object must be released after use, by calling the release method.
getLong$1(JString? string, JLong? long) JLong?
from: static public java.lang.Long getLong(java.lang.String string, java.lang.Long long) The returned object must be released after use, by calling the release method.
getLong$2(JString? string, int j) JLong?
from: static public java.lang.Long getLong(java.lang.String string, long j) The returned object must be released after use, by calling the release method.
hashCode$2(int j) int
from: static public int hashCode(long j)
highestOneBit(int j) int
from: static public long highestOneBit(long j)
lowestOneBit(int j) int
from: static public long lowestOneBit(long j)
max(int j, int j1) int
from: static public long max(long j, long j1)
min(int j, int j1) int
from: static public long min(long j, long j1)
numberOfLeadingZeros(int j) int
from: static public int numberOfLeadingZeros(long j)
numberOfTrailingZeros(int j) int
from: static public int numberOfTrailingZeros(long j)
parseLong(JObject? charSequence, int i, int i1, int i2) int
from: static public long parseLong(java.lang.CharSequence charSequence, int i, int i1, int i2)
parseLong$1(JString? string) int
from: static public long parseLong(java.lang.String string)
parseLong$2(JString? string, int i) int
from: static public long parseLong(java.lang.String string, int i)
parseUnsignedLong(JObject? charSequence, int i, int i1, int i2) int
from: static public long parseUnsignedLong(java.lang.CharSequence charSequence, int i, int i1, int i2)
parseUnsignedLong$1(JString? string) int
from: static public long parseUnsignedLong(java.lang.String string)
parseUnsignedLong$2(JString? string, int i) int
from: static public long parseUnsignedLong(java.lang.String string, int i)
remainderUnsigned(int j, int j1) int
from: static public long remainderUnsigned(long j, long j1)
reverse(int j) int
from: static public long reverse(long j)
reverseBytes(int j) int
from: static public long reverseBytes(long j)
rotateLeft(int j, int i) int
from: static public long rotateLeft(long j, int i)
rotateRight(int j, int i) int
from: static public long rotateRight(long j, int i)
signum(int j) int
from: static public int signum(long j)
sum(int j, int j1) int
from: static public long sum(long j, long j1)
toBinaryString(int j) JString?
from: static public java.lang.String toBinaryString(long j) The returned object must be released after use, by calling the release method.
toHexString(int j) JString?
from: static public java.lang.String toHexString(long j) The returned object must be released after use, by calling the release method.
toOctalString(int j) JString?
from: static public java.lang.String toOctalString(long j) The returned object must be released after use, by calling the release method.
toString$2(int j) JString?
from: static public java.lang.String toString(long j) The returned object must be released after use, by calling the release method.
toString$3(int j, int i) JString?
from: static public java.lang.String toString(long j, int i) The returned object must be released after use, by calling the release method.
toUnsignedString(int j) JString?
from: static public java.lang.String toUnsignedString(long j) The returned object must be released after use, by calling the release method.
toUnsignedString$1(int j, int i) JString?
from: static public java.lang.String toUnsignedString(long j, int i) The returned object must be released after use, by calling the release method.
valueOf(JString? string) JLong?
from: static public java.lang.Long valueOf(java.lang.String string) The returned object must be released after use, by calling the release method.
valueOf$1(JString? string, int i) JLong?
from: static public java.lang.Long valueOf(java.lang.String string, int i) The returned object must be released after use, by calling the release method.
valueOf$2(int j) JLong?
from: static public java.lang.Long valueOf(long j) 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 long MAX_VALUE
MIN_VALUE → const int
from: static public final long MIN_VALUE
SIZE → const int
from: static public final int SIZE
type → const JType<JLong>
The type which includes information such as the signature of this class.