Interface ParallelIterable<T>

    • Method Detail

      • select

        ParallelIterable<T> select​(Predicate<? super T> predicate)
        Creates a parallel iterable for selecting elements from the current iterable.
      • selectInstancesOf

        <S> ParallelIterable<S> selectInstancesOf​(java.lang.Class<S> clazz)
      • reject

        ParallelIterable<T> reject​(Predicate<? super T> predicate)
        Creates a parallel iterable for rejecting elements from the current iterable.
      • collect

        <V> ParallelIterable<V> collect​(Function<? super T,​? extends V> function)
        Creates a parallel iterable for collecting elements from the current iterable.
      • collectWith

        <P,​V> ParallelIterable<V> collectWith​(Function2<? super T,​? super P,​? extends V> function,
                                                    P parameter)
      • collectIf

        <V> ParallelIterable<V> collectIf​(Predicate<? super T> predicate,
                                          Function<? super T,​? extends V> function)
        Creates a parallel iterable for selecting and collecting elements from the current iterable.
      • flatCollect

        <V> ParallelIterable<V> flatCollect​(Function<? super T,​? extends java.lang.Iterable<V>> function)
        Creates a parallel flattening iterable for the current iterable.
      • forEach

        void forEach​(Procedure<? super T> procedure)
      • forEachWith

        <P> void forEachWith​(Procedure2<? super T,​? super P> procedure,
                             P parameter)
      • detectWith

        <P> T detectWith​(Predicate2<? super T,​? super P> predicate,
                         P parameter)
      • detectWithIfNone

        <P> T detectWithIfNone​(Predicate2<? super T,​? super P> predicate,
                               P parameter,
                               Function0<? extends T> function)
      • count

        int count​(Predicate<? super T> predicate)
      • countWith

        <P> int countWith​(Predicate2<? super T,​? super P> predicate,
                          P parameter)
      • anySatisfy

        boolean anySatisfy​(Predicate<? super T> predicate)
      • anySatisfyWith

        <P> boolean anySatisfyWith​(Predicate2<? super T,​? super P> predicate,
                                   P parameter)
      • allSatisfy

        boolean allSatisfy​(Predicate<? super T> predicate)
      • allSatisfyWith

        <P> boolean allSatisfyWith​(Predicate2<? super T,​? super P> predicate,
                                   P parameter)
      • noneSatisfy

        boolean noneSatisfy​(Predicate<? super T> predicate)
      • noneSatisfyWith

        <P> boolean noneSatisfyWith​(Predicate2<? super T,​? super P> predicate,
                                    P parameter)
      • toSortedList

        MutableList<T> toSortedList​(java.util.Comparator<? super T> comparator)
      • toSortedListBy

        <V extends java.lang.Comparable<? super V>> MutableList<T> toSortedListBy​(Function<? super T,​? extends V> function)
      • toSortedSet

        MutableSortedSet<T> toSortedSet​(java.util.Comparator<? super T> comparator)
      • toSortedSetBy

        <V extends java.lang.Comparable<? super V>> MutableSortedSet<T> toSortedSetBy​(Function<? super T,​? extends V> function)
      • toSortedBag

        MutableSortedBag<T> toSortedBag​(java.util.Comparator<? super T> comparator)
      • toSortedBagBy

        <V extends java.lang.Comparable<? super V>> MutableSortedBag<T> toSortedBagBy​(Function<? super T,​? extends V> function)
      • toMap

        <NK,​NV> MutableMap<NK,​NV> toMap​(Function<? super T,​? extends NK> keyFunction,
                                                    Function<? super T,​? extends NV> valueFunction)
      • toSortedMap

        <NK,​NV> MutableSortedMap<NK,​NV> toSortedMap​(Function<? super T,​? extends NK> keyFunction,
                                                                Function<? super T,​? extends NV> valueFunction)
      • toSortedMap

        <NK,​NV> MutableSortedMap<NK,​NV> toSortedMap​(java.util.Comparator<? super NK> comparator,
                                                                Function<? super T,​? extends NK> keyFunction,
                                                                Function<? super T,​? extends NV> valueFunction)
      • toArray

        default java.lang.Object[] toArray()
      • toArray

        <T1> T1[] toArray​(T1[] target)
      • min

        T min​(java.util.Comparator<? super T> comparator)
      • max

        T max​(java.util.Comparator<? super T> comparator)
      • min

        T min()
      • max

        T max()
      • minBy

        <V extends java.lang.Comparable<? super V>> T minBy​(Function<? super T,​? extends V> function)
      • maxBy

        <V extends java.lang.Comparable<? super V>> T maxBy​(Function<? super T,​? extends V> function)
      • sumOfInt

        long sumOfInt​(IntFunction<? super T> function)
        Returns the final long result of evaluating function for each element of the iterable in parallel and adding the results together.
        Since:
        6.0
      • sumOfFloat

        double sumOfFloat​(FloatFunction<? super T> function)
        Returns the final double result of evaluating function for each element of the iterable in parallel and adding the results together. It uses Kahan summation algorithm to reduce numerical error.
        Since:
        6.0
      • sumOfLong

        long sumOfLong​(LongFunction<? super T> function)
        Returns the final long result of evaluating function for each element of the iterable in parallel and adding the results together.
        Since:
        6.0
      • sumOfDouble

        double sumOfDouble​(DoubleFunction<? super T> function)
        Returns the final double result of evaluating function for each element of the iterable in parallel and adding the results together. It uses Kahan summation algorithm to reduce numerical error.
        Since:
        6.0
      • makeString

        default java.lang.String makeString()
      • makeString

        default java.lang.String makeString​(java.lang.String separator)
      • makeString

        default java.lang.String makeString​(java.lang.String start,
                                            java.lang.String separator,
                                            java.lang.String end)
      • makeString

        default java.lang.String makeString​(Function<? super T,​java.lang.Object> function,
                                            java.lang.String start,
                                            java.lang.String separator,
                                            java.lang.String end)
      • appendString

        default void appendString​(java.lang.Appendable appendable)
      • appendString

        default void appendString​(java.lang.Appendable appendable,
                                  java.lang.String separator)
      • appendString

        void appendString​(java.lang.Appendable appendable,
                          java.lang.String start,
                          java.lang.String separator,
                          java.lang.String end)
      • groupByEach

        <V> Multimap<V,​T> groupByEach​(Function<? super T,​? extends java.lang.Iterable<V>> function)
      • groupByUniqueKey

        <V> MapIterable<V,​T> groupByUniqueKey​(Function<? super T,​? extends V> function)
      • aggregateInPlaceBy

        <K,​V> MapIterable<K,​V> aggregateInPlaceBy​(Function<? super T,​? extends K> groupBy,
                                                              Function0<? extends V> zeroValueFactory,
                                                              Procedure2<? super V,​? super T> mutatingAggregator)
      • aggregateBy

        <K,​V> MapIterable<K,​V> aggregateBy​(Function<? super T,​? extends K> groupBy,
                                                       Function0<? extends V> zeroValueFactory,
                                                       Function2<? super V,​? super T,​? extends V> nonMutatingAggregator)