shadow:standard

Class ArrayNullable<T>

Parent class

shadow:standard@Object

Interfaces

shadow:standard@CanIndexNullable<long,T>, shadow:standard@CanIndexStoreNullable<long,T>, shadow:standard@CanIterateNullable<T>

abstract locked class ArrayNullable<T>

Class ArrayNullable<T> is used to house the methods for nullable array objects. The use of NullableArray<T> is handled by the compiler. Users should avoid using the NullableArray<T> type explicitly. In this implementation, most methods of NullableArray<T> are implemented as aliases to the parallel method in Array<T>, since the mechanics differ in only a few cases.

Destroy Summary

Modifiers Return Types Method and Description
public () destroy()

Method Summary

Modifiers Return Types Method and Description
public readonly (ArrayNullable<T>) copy(AddressMap addresses)
public readonly locked (nullable T) index(long index)
public locked () index(long index, nullable T value)
public locked (boolean) isNullable()
public readonly locked (IteratorNullable<T>) iterator()

Gets iterator that can iterate over all the elements of the array.

public readonly locked (ArrayNullable<T>) subarray(long start, long end)
public readonly locked (String) toString()

Gets formatted String representation of the array.

Property Summary

Modifiers Return Types Method and Description
public readonly get locked (int) size()

Gets the size of the array (total number of elements) as an int.

public readonly get locked (long) sizeLong()

Destroy Detail

destroy

public destroy() => ()

Method Detail

copy

public readonly copy(AddressMap addresses) => (ArrayNullable<T>)

index

public readonly locked index(long index) => (nullable T)

index

public locked index(long index, nullable T value) => ()

isNullable

public locked isNullable() => (boolean)

iterator

public readonly locked iterator() => (IteratorNullable<T>)

Gets iterator that can iterate over all the elements of the array.

Returns

iterator

subarray

public readonly locked subarray(long start, long end) => (ArrayNullable<T>)

toString

public readonly locked toString() => (String)

Gets formatted String representation of the array.

Returns

String representation

Property Detail

size

public readonly get locked size() => (int)

Gets the size of the array (total number of elements) as an int.

Returns

size of array

sizeLong

public readonly get locked sizeLong() => (long)