JLongArray extension type
A fixed-length array of Java Long.
Integers stored in the list are truncated to their low 64 bits interpreted as a signed 64-bit two's complement integer with values in the range -9223372036854775808 to +9223372036854775807.
Java equivalent of Int64List.
- on
- Implemented types
- Available extensions
Constructors
- JLongArray(int length)
-
Creates a JLongArray of the given
length.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
- length → int
-
The number of elements in this array.
no setter
- 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 -
asDart(
) → List< int> -
Available on JLongArray, provided by the JLongArrayToList extension
Returns a List view into this array. -
getRange(
int start, int end, {Allocator allocator = malloc}) → Int64List -
Returns a copy of the range of elements from
starttoendas a Int64List. -
isA<
T extends JObject> (JType< T> type) → bool -
Whether this object is of the given
typeignoring the type parameters.inherited -
isInstanceOf(
JClass jclass) → bool -
Whether this object is of the type of the given
jclass.inherited -
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 -
setRange(
int start, int end, Iterable< int> iterable, [int skipCount = 0]) → void -
Copies the elements of
iterable, skippingskipCountelements first, into this array in the rangestarttoend. -
toString(
) → String -
A string representation of this object.
inherited
-
use<
R> (R callback(T)) → R -
Available on T, provided by the JObjectUseExtension extension
Appliescallbackon this object and then deletes the underlying JNI reference, returning the result ofcallback.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → int -
operator []=(
int index, int value) → void
Static Methods
-
of(
Iterable< int> elements) → JLongArray -
Creates a JLongArray from
elements.
Constants
-
type
→ const JType<
JLongArray> - The type which includes information such as the signature of this class.