Interface LongList

    • Method Detail

      • get

        long get​(int index)
      • dotProduct

        long dotProduct​(LongList list)
      • binarySearch

        int binarySearch​(long value)
      • lastIndexOf

        int lastIndexOf​(long value)
      • forEachInBoth

        default void forEachInBoth​(LongList other,
                                   LongLongProcedure procedure)
        This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.
        Since:
        11.1
      • equals

        boolean equals​(java.lang.Object o)
        Follows the same general contract as List.equals(Object).
        Overrides:
        equals in class java.lang.Object
      • hashCode

        int hashCode()
        Follows the same general contract as List.hashCode().
        Overrides:
        hashCode in class java.lang.Object
      • toImmutable

        ImmutableLongList toImmutable()
        Returns an immutable copy of this list. If the list is immutable, it returns itself.
      • subList

        LongList subList​(int fromIndex,
                         int toIndex)
        Since:
        5.0.
        See Also:
        List.subList(int fromIndex, int toIndex)
      • zipLong

        default ListIterable<LongLongPair> zipLong​(LongIterable iterable)
        Returns a ListIterable formed from this LongList and another LongList by combining corresponding elements in pairs. If one of the two LongLists is longer than the other, its remaining elements are ignored.
        Since:
        9.1.
      • zip

        default <T> ListIterable<LongObjectPair<T>> zip​(java.lang.Iterable<T> iterable)
        Returns a ListIterable formed from this LongList and a ListIterable by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
        Since:
        9.1.
      • spliterator

        java.util.Spliterator.OfLong spliterator()
        Since:
        10.0
      • primitiveStream

        default java.util.stream.LongStream primitiveStream()
        Since:
        10.0
      • primitiveParallelStream

        default java.util.stream.LongStream primitiveParallelStream()
        Since:
        10.0