Package 

Object AtomicFastArray64.Companion

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 array
        init - the initializer function to apply
      • 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 question
        copy - 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 question
        copy - 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