Package 

Class FastIntArray64

  • All Implemented Interfaces:
    io.github.millibyte1.array64.Array64 , io.github.millibyte1.array64.IntArray64 , kotlin.collections.Iterable

    
    public class FastIntArray64
     implements IntArray64
                        

    A 64-bit-indexed byte array with an interface mirroring that of the standard library class IntArray.

    Internally uses a 2D array and the FastUtil BigArrays library.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Long size
    • Constructor Summary

      Constructors 
      Constructor Description
      FastIntArray64(Long size) Creates a new array of the specified size, with all elements initialized to zero.
      FastIntArray64(Long size, Function1<Long, Integer> init) Creates a new array of the specified size, with all elements initialized according to the given init function.
      FastIntArray64(FastIntArray64 array) Creates a copy of the given array.
      FastIntArray64(Array<IntArray> array, Boolean copy) Creates a new array from the given 2D array, either by copying its contents or simply wrapping it.
      FastIntArray64(Array<IntArray> array) Creates a new array from the given 2D array, either by copying its contents or simply wrapping it.
      FastIntArray64(IntArray array, Boolean copy) Creates a new array from the given standard library array, either by copying its contents or simply wrapping it.
      FastIntArray64(IntArray array) Creates a new array from the given standard library array, either by copying its contents or simply wrapping it.
    • Constructor Detail

      • FastIntArray64

        FastIntArray64(Long size)
        Creates a new array of the specified size, with all elements initialized to zero.
      • FastIntArray64

        FastIntArray64(Long size, Function1<Long, Integer> init)
        Creates a new array of the specified size, with all elements initialized according to the given init function.
      • FastIntArray64

        FastIntArray64(FastIntArray64 array)
        Creates a copy of the given array.
        Parameters:
        array - the array in question
      • FastIntArray64

        FastIntArray64(Array<IntArray> array, Boolean copy)
        Creates a new array from the given 2D 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)
      • FastIntArray64

        FastIntArray64(Array<IntArray> array)
        Creates a new array from the given 2D array, either by copying its contents or simply wrapping it.
        Parameters:
        array - the array in question
      • FastIntArray64

        FastIntArray64(IntArray 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)
      • FastIntArray64

        FastIntArray64(IntArray 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