Interface Structure1D

    • Method Detail

      • index

        static int index​(long index)
      • mapper

        static <T> Structure1D.IndexMapper<T> mapper()
        Returns:
        A very simple implementation - you better come up with something else.
      • newDecreasingRange

        static int[] newDecreasingRange​(int first,
                                        int count)
      • newDecreasingRange

        static long[] newDecreasingRange​(long first,
                                         int count)
      • newIncreasingRange

        static int[] newIncreasingRange​(int first,
                                        int count)
      • newIncreasingRange

        static long[] newIncreasingRange​(long first,
                                         int count)
      • replaceNullOrEmptyWithFull

        static long[] replaceNullOrEmptyWithFull​(long[] suggested,
                                                 int fullSize)
      • toIntIndexes

        static int[] toIntIndexes​(long[] indexes)
      • toLongIndexes

        static long[] toLongIndexes​(int[] indexes)
      • count

        default long count()
        The total number of elements in this structure.

        You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.

      • size

        int size()
        The total number of elements in this structure.