-
public class AtomicFastArray64.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static AtomicFastArray64.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final <E extends Any> AtomicFastArray64<E>
create(Long size, Function1<Long, E> init)
Creates a new array of the specified size, with all elements initialized according to the given init function. final <E extends Any> AtomicFastArray64<E>
create(FastArray64<E> array)
Creates a copy of the given array. final <E extends Any> AtomicFastArray64<E>
create(Array<Array<E>> array, Boolean copy)
Creates a new array from the given FastUtil BigArray, either by copying its contents or simply wrapping it. final <E extends Any> AtomicFastArray64<E>
create(Array<Array<E>> array)
Creates a new array from the given FastUtil BigArray, either by copying its contents or simply wrapping it. final <E extends Any> AtomicFastArray64<E>
create(Array<E> array, Boolean copy)
Creates a new array from the given standard library array, either by copying its contents or simply wrapping it. final <E extends Any> AtomicFastArray64<E>
create(Array<E> array)
Creates a new array from the given standard library array, either by copying its contents or simply wrapping it. -
-
Method Detail
-
create
final <E extends Any> AtomicFastArray64<E> create(Long size, Function1<Long, E> init)
Creates a new array of the specified size, with all elements initialized according to the given init function.
- Parameters:
size
- the desired size of the arrayinit
- the initializer function to apply
-
create
final <E extends Any> AtomicFastArray64<E> create(FastArray64<E> array)
Creates a copy of the given array.
- Parameters:
array
- the array in question
-
create
@JvmOverloads() final <E extends Any> AtomicFastArray64<E> create(Array<Array<E>> array, Boolean copy)
Creates a new array from the given FastUtil BigArray, either by copying its contents or simply wrapping it.
- Parameters:
array
- the array in questioncopy
- whether to copy (true) the array or directly use it as the internal array (false)
-
create
@JvmOverloads() final <E extends Any> AtomicFastArray64<E> create(Array<Array<E>> array)
Creates a new array from the given FastUtil BigArray, either by copying its contents or simply wrapping it.
- Parameters:
array
- the array in question
-
create
@JvmOverloads() final <E extends Any> AtomicFastArray64<E> create(Array<E> array, Boolean copy)
Creates a new array from the given standard library array, either by copying its contents or simply wrapping it.
- Parameters:
array
- the array in questioncopy
- whether to copy (true) the array or directly use it as the internal array (false)
-
create
@JvmOverloads() final <E extends Any> AtomicFastArray64<E> create(Array<E> array)
Creates a new array from the given standard library array, either by copying its contents or simply wrapping it.
- Parameters:
array
- the array in question
-
-
-
-