Class Collections
java.lang.Object
io.vavr.collection.Collections
Internal class, containing helpers.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean(package private) static <T, C extends Seq<T>>
CasJava(C source, Consumer<? super List<T>> action, JavaConverters.ChangePolicy changePolicy) crossProduct(S empty, S seq, int power) (package private) static <T, S extends IndexedSeq<T>>
SdropRightUntil(S seq, Predicate<? super T> predicate) (package private) static <T, S extends IndexedSeq<T>>
S(package private) static <K,V> boolean (package private) static <K,V> boolean (package private) static <V> boolean(package private) static <V> boolean(package private) static <T> Iterator<T> (package private) static <C extends Traversable<T>, T>
C(package private) static <T> Iterator<T> fillObject(int n, T element) (package private) static <C extends Traversable<T>, T>
CfillObject(int n, T element, C empty, Function<T[], C> of) private static <T,C> Set <Map.Entry<C, Collection<T>>> groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier) groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier, Function<? super Iterable<T>, R> mapper) private static inthash(Iterable<?> iterable, IntBinaryOperator accumulator) (package private) static inthashOrdered(Iterable<?> iterable) (package private) static inthashUnordered(Iterable<?> iterable) indexOption(int index) (package private) static boolean(package private) static <T> booleanisTraversableAgain(Iterable<? extends T> iterable) (package private) static <T> Tlast(Traversable<T> source) (package private) static <K, V, K2, U extends Map<K2,V>>
UmapKeys(Map<K, V> source, U zero, Function<? super K, ? extends K2> keyMapper, BiFunction<? super V, ? super V, ? extends V> valueMerge) (package private) static <C extends Traversable<T>, T>
Tuple2<C, C> (package private) static <C extends Traversable<T>, T>
C(package private) static <C extends Traversable<T>, T>
C(package private) static <C extends Traversable<T>, T>
CremoveAll(C source, T element) (package private) static <C extends Traversable<T>, T>
C(package private) static <T> Iterator<T> reverseIterator(Iterable<T> iterable) private static <T> Iterator<T> reverseListIterator(List<T> list) (package private) static <T, C extends Seq<T>>
CrotateLeft(C source, int n) (package private) static <T, C extends Seq<T>>
CrotateRight(C source, int n) (package private) static <T, U, R extends Traversable<U>>
RscanLeft(Traversable<? extends T> source, U zero, BiFunction<? super U, ? super T, ? extends U> operation, Function<Iterator<U>, R> finisher) (package private) static <T, U, R extends Traversable<U>>
RscanRight(Traversable<? extends T> source, U zero, BiFunction<? super T, ? super U, ? extends U> operation, Function<Iterator<U>, R> finisher) (package private) static <T, S extends Seq<T>>
S(package private) static <T, U, R extends Seq<T>>
RsortBy(Seq<? extends T> source, Comparator<? super U> comparator, Function<? super T, ? extends U> mapper, Collector<T, ?, R> collector) (package private) static voidsubSequenceRangeCheck(int beginIndex, int endIndex, int length) (package private) static <T> Iterator<T> (package private) static <C extends Traversable<T>, T>
C(package private) static <T, S extends IndexedSeq<T>>
StakeRightUntil(S seq, Predicate<? super T> predicate) (package private) static <T, S extends IndexedSeq<T>>
StransposeNonEmptyMatrix(V matrix, Function<Iterable<U>, V> rowFactory, Function<T[], U> columnFactory) (package private) static <T> Collections.IterableWithSize<T> private static <T> Collections.IterableWithSize<T> withSizeTraversable(Iterable<? extends T> iterable)
-
Constructor Details
-
Collections
Collections()
-
-
Method Details
-
areEqual
-
asJava
@GwtIncompatible static <T, C extends Seq<T>> C asJava(C source, Consumer<? super List<T>> action, JavaConverters.ChangePolicy changePolicy) -
crossProduct
-
dropRightUntil
-
dropUntil
-
equals
-
equals
-
equals
-
equals
-
fill
-
fillObject
-
fill
static <C extends Traversable<T>, T> C fill(int n, Supplier<? extends T> s, C empty, Function<T[], C> of) -
fillObject
-
groupBy
-
groupBy
private static <T,C> Set<Map.Entry<C, Collection<T>>> groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier) -
hashOrdered
-
hashUnordered
-
hash
-
indexOption
-
isEmpty
-
isTraversableAgain
-
last
-
mapKeys
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) -
partition
static <C extends Traversable<T>, T> Tuple2<C,C> partition(C collection, Function<Iterable<T>, C> creator, Predicate<? super T> predicate) -
removeAll
-
reject
-
removeAll
-
retainAll
-
reverseIterator
-
reverseListIterator
-
rotateLeft
-
rotateRight
-
scanLeft
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) -
scanRight
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) -
sortBy
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) -
shuffle
-
subSequenceRangeCheck
static void subSequenceRangeCheck(int beginIndex, int endIndex, int length) -
tabulate
-
tabulate
static <C extends Traversable<T>, T> C tabulate(int n, Function<? super Integer, ? extends T> f, C empty, Function<T[], C> of) -
takeRightUntil
-
takeUntil
-
transpose
-
transposeNonEmptyMatrix
-
withSize
-
withSizeTraversable
private static <T> Collections.IterableWithSize<T> withSizeTraversable(Iterable<? extends T> iterable)
-