Top Description Inners Constructors Methods
io.vavr.collection

pack-priv final Class Collections

extends Object
Class Inheritance
Imports
io.vavr.Tuple, .Tuple2, io.vavr.collection.JavaConverters.ChangePolicy, .JavaConverters.ListView, io.vavr.control.Option, java.util.*, java.util.function.*, java.util.stream.Collector

Internal class, containing helpers.
Author
Daniel Dietrich

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
areEqual(Iterable<?> iterable1, Iterable<?> iterable2)

pack-priv static <T, C extends Seq<T>> C
asJava(C source, Consumer<? super List<T>> action, JavaConverters.ChangePolicy changePolicy)

pack-priv static <T, S extends Seq<T>> Iterator<S>
crossProduct(S empty, S seq, int power)

pack-priv static <T, S extends IndexedSeq<T>> S
dropRightUntil(S seq, Predicate<? super T> predicate)

pack-priv static <T, S extends IndexedSeq<T>> S
dropUntil(S seq, Predicate<? super T> predicate)

pack-priv static <K, V> boolean
equals(Map<K, V> source, Object object)

pack-priv static <K, V> boolean
equals(Multimap<K, V> source, Object object)

pack-priv static <V> boolean
equals(Seq<V> source, Object object)

pack-priv static <V> boolean
equals(Set<V> source, Object object)

pack-priv static <T> Iterator<T>
fill(int n, Supplier<? extends T> supplier)

pack-priv static <C extends Traversable<T>, T> C
fill(int n, Supplier<? extends T> s, C empty, Function<T[], C> of)

pack-priv static <T> Iterator<T>
fillObject(int n, T element)

pack-priv static <C extends Traversable<T>, T> C
fillObject(int n, T element, C empty, Function<T[], C> of)

pack-priv static <T, C, R extends Iterable<T>> Map<C, R>
groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier, Function<? super Iterable<T>, R> mapper)

private static <T, C> Set<Map.Entry<C, Collection<T>>>
groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier)

private static int
hash(Iterable<?> iterable, IntBinaryOperator accumulator)

pack-priv static int
hashOrdered(Iterable<?> iterable)

pack-priv static int
hashUnordered(Iterable<?> iterable)

pack-priv static Option<Integer>
indexOption(int index)

pack-priv static boolean
isEmpty(Iterable<?> iterable)

pack-priv static <T> boolean
isTraversableAgain(Iterable<? extends T> iterable)

pack-priv static <T> T
last(Traversable<T> source)

pack-priv static <K, V, K2, U extends Map<K2, V>> U
mapKeys(Map<K, V> source, U zero, Function<? super K, ? extends K2> keyMapper, BiFunction<? super V, ? super V, ? extends V> valueMerge)

pack-priv static <C extends Traversable<T>, T> Tuple2<C, C>
partition(C collection, Function<Iterable<T>, C> creator, Predicate<? super T> predicate)

pack-priv static <C extends Traversable<T>, T> C
reject(C source, Predicate<? super T> predicate)

pack-priv static <C extends Traversable<T>, T> C
removeAll(C source, Iterable<? extends T> elements)

pack-priv static <C extends Traversable<T>, T> C
removeAll(C source, T element)

pack-priv static <C extends Traversable<T>, T> C
retainAll(C source, Iterable<? extends T> elements)

pack-priv static <T> Iterator<T>
private static <T> Iterator<T>
pack-priv static <T, C extends Seq<T>> C
rotateLeft(C source, int n)

pack-priv static <T, C extends Seq<T>> C
rotateRight(C source, int n)

pack-priv static <T, U, R extends Traversable<U>> R
scanLeft(Traversable<? extends T> source, U zero, BiFunction<? super U, ? super T, ? extends U> operation, Function<Iterator<U>, R> finisher)

pack-priv static <T, U, R extends Traversable<U>> R
scanRight(Traversable<? extends T> source, U zero, BiFunction<? super T, ? super U, ? extends U> operation, Function<Iterator<U>, R> finisher)

pack-priv static <T, S extends Seq<T>> S
shuffle(S source, Function<? super Iterable<T>, S> ofAll)

pack-priv static <T, U, R extends Seq<T>> R
sortBy(Seq<? extends T> source, Comparator<? super U> comparator, Function<? super T, ? extends U> mapper, Collector<T, ?, R> collector)

pack-priv static void
subSequenceRangeCheck(int beginIndex, int endIndex, int length)

pack-priv static <T> Iterator<T>
tabulate(int n, Function<? super Integer, ? extends T> f)

pack-priv static <C extends Traversable<T>, T> C
tabulate(int n, Function<? super Integer, ? extends T> f, C empty, Function<T[], C> of)

pack-priv static <T, S extends IndexedSeq<T>> S
takeRightUntil(S seq, Predicate<? super T> predicate)

pack-priv static <T, S extends IndexedSeq<T>> S
takeUntil(S seq, Predicate<? super T> predicate)

pack-priv static <T, U extends Seq<T>, V extends Seq<U>> V
transpose(V matrix, Function<Iterable<U>, V> rowFactory, Function<T[], U> columnFactory)

private static <T, U extends Seq<T>, V extends Seq<U>> V
transposeNonEmptyMatrix(V matrix, Function<Iterable<U>, V> rowFactory, Function<T[], U> columnFactory)

pack-priv static <T> Collections.IterableWithSize<T>
withSize(Iterable<? extends T> iterable)

private static <T> Collections.IterableWithSize<T>
withSizeTraversable(Iterable<? extends T> iterable)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Collectionsback to summary
pack-priv Collections()

Method Detail

areEqualback to summary
pack-priv static boolean areEqual(Iterable<?> iterable1, Iterable<?> iterable2)
asJavaback to summary
pack-priv static <T, C extends Seq<T>> C asJava(C source, Consumer<? super List<T>> action, JavaConverters.ChangePolicy changePolicy)
Annotations
@GwtIncompatible
crossProductback to summary
pack-priv static <T, S extends Seq<T>> Iterator<S> crossProduct(S empty, S seq, int power)
Annotations
@SuppressWarnings:unchecked
dropRightUntilback to summary
pack-priv static <T, S extends IndexedSeq<T>> S dropRightUntil(S seq, Predicate<? super T> predicate)
Annotations
@SuppressWarnings:unchecked
dropUntilback to summary
pack-priv static <T, S extends IndexedSeq<T>> S dropUntil(S seq, Predicate<? super T> predicate)
Annotations
@SuppressWarnings:unchecked
equalsback to summary
pack-priv static <K, V> boolean equals(Map<K, V> source, Object object)
Annotations
@SuppressWarnings:unchecked
equalsback to summary
pack-priv static <K, V> boolean equals(Multimap<K, V> source, Object object)
Annotations
@SuppressWarnings:unchecked
equalsback to summary
pack-priv static <V> boolean equals(Seq<V> source, Object object)
Annotations
@SuppressWarnings:unchecked
equalsback to summary
pack-priv static <V> boolean equals(Set<V> source, Object object)
Annotations
@SuppressWarnings:unchecked
fillback to summary
pack-priv static <T> Iterator<T> fill(int n, Supplier<? extends T> supplier)
fillback to summary
pack-priv static <C extends Traversable<T>, T> C fill(int n, Supplier<? extends T> s, C empty, Function<T[], C> of)
fillObjectback to summary
pack-priv static <T> Iterator<T> fillObject(int n, T element)
fillObjectback to summary
pack-priv static <C extends Traversable<T>, T> C fillObject(int n, T element, C empty, Function<T[], C> of)
groupByback to summary
pack-priv static <T, C, R extends Iterable<T>> Map<C, R> groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier, Function<? super Iterable<T>, R> mapper)
groupByback to summary
private static <T, C> Set<Map.Entry<C, Collection<T>>> groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier)
hashback to summary
private static int hash(Iterable<?> iterable, IntBinaryOperator accumulator)
hashOrderedback to summary
pack-priv static int hashOrdered(Iterable<?> iterable)
hashUnorderedback to summary
pack-priv static int hashUnordered(Iterable<?> iterable)
indexOptionback to summary
pack-priv static Option<Integer> indexOption(int index)
isEmptyback to summary
pack-priv static boolean isEmpty(Iterable<?> iterable)
isTraversableAgainback to summary
pack-priv static <T> boolean isTraversableAgain(Iterable<? extends T> iterable)
lastback to summary
pack-priv static <T> T last(Traversable<T> source)
mapKeysback to summary
pack-priv static <K, V, K2, U extends Map<K2, V>> U mapKeys(Map<K, V> source, U zero, Function<? super K, ? extends K2> keyMapper, BiFunction<? super V, ? super V, ? extends V> valueMerge)
Annotations
@SuppressWarnings:unchecked
partitionback to summary
pack-priv static <C extends Traversable<T>, T> Tuple2<C, C> partition(C collection, Function<Iterable<T>, C> creator, Predicate<? super T> predicate)
rejectback to summary
pack-priv static <C extends Traversable<T>, T> C reject(C source, Predicate<? super T> predicate)
Annotations
@SuppressWarnings:unchecked
removeAllback to summary
pack-priv static <C extends Traversable<T>, T> C removeAll(C source, Iterable<? extends T> elements)
Annotations
@SuppressWarnings:unchecked
removeAllback to summary
pack-priv static <C extends Traversable<T>, T> C removeAll(C source, T element)
Annotations
@SuppressWarnings:unchecked
retainAllback to summary
pack-priv static <C extends Traversable<T>, T> C retainAll(C source, Iterable<? extends T> elements)
Annotations
@SuppressWarnings:unchecked
reverseIteratorback to summary
pack-priv static <T> Iterator<T> reverseIterator(Iterable<T> iterable)
reverseListIteratorback to summary
private static <T> Iterator<T> reverseListIterator(List<T> list)
rotateLeftback to summary
pack-priv static <T, C extends Seq<T>> C rotateLeft(C source, int n)
Annotations
@SuppressWarnings:unchecked
rotateRightback to summary
pack-priv static <T, C extends Seq<T>> C rotateRight(C source, int n)
Annotations
@SuppressWarnings:unchecked
scanLeftback to summary
pack-priv static <T, U, R extends Traversable<U>> R scanLeft(Traversable<? extends T> source, U zero, BiFunction<? super U, ? super T, ? extends U> operation, Function<Iterator<U>, R> finisher)
scanRightback to summary
pack-priv static <T, U, R extends Traversable<U>> R scanRight(Traversable<? extends T> source, U zero, BiFunction<? super T, ? super U, ? extends U> operation, Function<Iterator<U>, R> finisher)
shuffleback to summary
pack-priv static <T, S extends Seq<T>> S shuffle(S source, Function<? super Iterable<T>, S> ofAll)
sortByback to summary
pack-priv static <T, U, R extends Seq<T>> R sortBy(Seq<? extends T> source, Comparator<? super U> comparator, Function<? super T, ? extends U> mapper, Collector<T, ?, R> collector)
subSequenceRangeCheckback to summary
pack-priv static void subSequenceRangeCheck(int beginIndex, int endIndex, int length)
tabulateback to summary
pack-priv static <T> Iterator<T> tabulate(int n, Function<? super Integer, ? extends T> f)
tabulateback to summary
pack-priv static <C extends Traversable<T>, T> C tabulate(int n, Function<? super Integer, ? extends T> f, C empty, Function<T[], C> of)
takeRightUntilback to summary
pack-priv static <T, S extends IndexedSeq<T>> S takeRightUntil(S seq, Predicate<? super T> predicate)
Annotations
@SuppressWarnings:unchecked
takeUntilback to summary
pack-priv static <T, S extends IndexedSeq<T>> S takeUntil(S seq, Predicate<? super T> predicate)
Annotations
@SuppressWarnings:unchecked
transposeback to summary
pack-priv static <T, U extends Seq<T>, V extends Seq<U>> V transpose(V matrix, Function<Iterable<U>, V> rowFactory, Function<T[], U> columnFactory)
transposeNonEmptyMatrixback to summary
private static <T, U extends Seq<T>, V extends Seq<U>> V transposeNonEmptyMatrix(V matrix, Function<Iterable<U>, V> rowFactory, Function<T[], U> columnFactory)
withSizeback to summary
pack-priv static <T> Collections.IterableWithSize<T> withSize(Iterable<? extends T> iterable)
withSizeTraversableback to summary
private static <T> Collections.IterableWithSize<T> withSizeTraversable(Iterable<? extends T> iterable)
io.vavr.collection back to summary

pack-priv Class Collections.IterableWithSize<T>

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Iterable<? extends T>
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
IterableWithSize(Iterable<? extends T> iterable, int size)

Method Summary

Modifier and TypeMethod and Description
pack-priv Iterator<? extends T>
pack-priv Iterator<? extends T>
pack-priv int
size()

pack-priv Object[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iterableback to summary
private final Iterable<? extends T> iterable
sizeback to summary
private final int size

Constructor Detail

IterableWithSizeback to summary
pack-priv IterableWithSize(Iterable<? extends T> iterable, int size)

Method Detail

iteratorback to summary
pack-priv Iterator<? extends T> iterator()
reverseIteratorback to summary
pack-priv Iterator<? extends T> reverseIterator()
sizeback to summary
pack-priv int size()
toArrayback to summary
pack-priv Object[] toArray()