Interface IntList

    • Method Detail

      • get

        int get​(int index)
      • dotProduct

        long dotProduct​(IntList list)
      • binarySearch

        int binarySearch​(int value)
      • lastIndexOf

        int lastIndexOf​(int value)
      • forEachInBoth

        default void forEachInBoth​(IntList other,
                                   IntIntProcedure 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

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

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

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

        default <T> ListIterable<IntObjectPair<T>> zip​(java.lang.Iterable<T> iterable)
        Returns a ListIterable formed from this IntList 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.OfInt spliterator()
        Since:
        10.0
      • primitiveStream

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

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