Package | Description |
---|---|
javaslang.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Interface and Description |
---|---|
interface |
List<T>
An immutable
List is an eager sequence of elements. |
interface |
Stack<T>
An immutable
Stack stores elements allowing a last-in-first-out (LIFO) retrieval. |
interface |
Stream<T>
An immutable
Stream is lazy sequence of elements which may be infinitely long. |
Modifier and Type | Class and Description |
---|---|
static class |
List.Cons<T>
Non-empty
List , consisting of a head and a tail . |
static class |
List.Nil<T>
Representation of the singleton empty
List . |
class |
Queue<T>
An immutable
Queue stores elements allowing a first-in-first-out (FIFO) retrieval. |
static class |
Stream.Cons<T>
|
static class |
Stream.Empty<T>
The empty Stream.
|
Modifier and Type | Method and Description |
---|---|
LinearSeq<T> |
LinearSeq.append(T element) |
LinearSeq<T> |
LinearSeq.appendAll(Iterable<? extends T> elements) |
LinearSeq<T> |
LinearSeq.clear() |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.combinations() |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.combinations(int k) |
LinearSeq<Tuple2<T,T>> |
LinearSeq.crossProduct() |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.crossProduct(int power) |
<U> LinearSeq<Tuple2<T,U>> |
LinearSeq.crossProduct(Iterable<? extends U> that) |
LinearSeq<T> |
LinearSeq.distinct() |
LinearSeq<T> |
LinearSeq.distinctBy(Comparator<? super T> comparator) |
<U> LinearSeq<T> |
LinearSeq.distinctBy(java.util.function.Function<? super T,? extends U> keyExtractor) |
LinearSeq<T> |
LinearSeq.drop(long n) |
LinearSeq<T> |
LinearSeq.dropRight(long n) |
LinearSeq<T> |
LinearSeq.dropUntil(java.util.function.Predicate<? super T> predicate) |
LinearSeq<T> |
LinearSeq.dropWhile(java.util.function.Predicate<? super T> predicate) |
LinearSeq<T> |
LinearSeq.filter(java.util.function.Predicate<? super T> predicate) |
<U> LinearSeq<U> |
LinearSeq.flatMap(java.util.function.Function<? super T,? extends Iterable<? extends U>> mapper) |
LinearSeq<T> |
LinearSeq.init() |
LinearSeq<T> |
LinearSeq.insert(int index,
T element) |
LinearSeq<T> |
LinearSeq.insertAll(int index,
Iterable<? extends T> elements) |
LinearSeq<T> |
LinearSeq.intersperse(T element) |
<U> LinearSeq<U> |
LinearSeq.map(java.util.function.Function<? super T,? extends U> mapper) |
LinearSeq<T> |
LinearSeq.padTo(int length,
T element) |
LinearSeq<T> |
LinearSeq.patch(int from,
Iterable<? extends T> that,
int replaced) |
LinearSeq<T> |
LinearSeq.peek(java.util.function.Consumer<? super T> action) |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.permutations() |
LinearSeq<T> |
LinearSeq.prepend(T element) |
LinearSeq<T> |
LinearSeq.prependAll(Iterable<? extends T> elements) |
LinearSeq<T> |
LinearSeq.remove(T element) |
LinearSeq<T> |
LinearSeq.removeAll(Iterable<? extends T> elements) |
LinearSeq<T> |
LinearSeq.removeAll(T element) |
LinearSeq<T> |
LinearSeq.removeAt(int index) |
LinearSeq<T> |
LinearSeq.removeFirst(java.util.function.Predicate<T> predicate) |
LinearSeq<T> |
LinearSeq.removeLast(java.util.function.Predicate<T> predicate) |
LinearSeq<T> |
LinearSeq.replace(T currentElement,
T newElement) |
LinearSeq<T> |
LinearSeq.replaceAll(T currentElement,
T newElement) |
LinearSeq<T> |
LinearSeq.retainAll(Iterable<? extends T> elements) |
LinearSeq<T> |
LinearSeq.reverse() |
LinearSeq<T> |
LinearSeq.scan(T zero,
java.util.function.BiFunction<? super T,? super T,? extends T> operation) |
<U> LinearSeq<U> |
LinearSeq.scanLeft(U zero,
java.util.function.BiFunction<? super U,? super T,? extends U> operation) |
<U> LinearSeq<U> |
LinearSeq.scanRight(U zero,
java.util.function.BiFunction<? super T,? super U,? extends U> operation) |
LinearSeq<T> |
LinearSeq.slice(long beginIndex,
long endIndex) |
LinearSeq<T> |
LinearSeq.sort() |
LinearSeq<T> |
LinearSeq.sort(Comparator<? super T> comparator) |
<U> LinearSeq<T> |
LinearSeq.sortBy(Comparator<? super U> comparator,
java.util.function.Function<? super T,? extends U> mapper) |
<U extends Comparable<? super U>> |
LinearSeq.sortBy(java.util.function.Function<? super T,? extends U> mapper) |
LinearSeq<T> |
LinearSeq.subSequence(int beginIndex) |
LinearSeq<T> |
LinearSeq.subSequence(int beginIndex,
int endIndex) |
LinearSeq<T> |
LinearSeq.tail() |
LinearSeq<T> |
LinearSeq.take(long n) |
LinearSeq<T> |
LinearSeq.takeRight(long n) |
LinearSeq<T> |
LinearSeq.takeUntil(java.util.function.Predicate<? super T> predicate) |
LinearSeq<T> |
LinearSeq.takeWhile(java.util.function.Predicate<? super T> predicate) |
<U> LinearSeq<U> |
LinearSeq.unit(Iterable<? extends U> iterable) |
LinearSeq<T> |
LinearSeq.update(int index,
T element) |
<U> LinearSeq<Tuple2<T,U>> |
LinearSeq.zip(Iterable<U> that) |
<U> LinearSeq<Tuple2<T,U>> |
LinearSeq.zipAll(Iterable<U> that,
T thisElem,
U thatElem) |
LinearSeq<Tuple2<T,Long>> |
LinearSeq.zipWithIndex() |
Modifier and Type | Method and Description |
---|---|
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.combinations() |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.combinations(int k) |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.crossProduct(int power) |
<C> Map<C,? extends LinearSeq<T>> |
LinearSeq.groupBy(java.util.function.Function<? super T,? extends C> classifier) |
Iterator<? extends LinearSeq<T>> |
LinearSeq.grouped(long size) |
Option<? extends LinearSeq<T>> |
LinearSeq.initOption() |
Match.MatchValue.Of<? extends LinearSeq<T>> |
LinearSeq.match() |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.partition(java.util.function.Predicate<? super T> predicate) |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.partition(java.util.function.Predicate<? super T> predicate) |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.permutations() |
Iterator<? extends LinearSeq<T>> |
LinearSeq.sliding(long size) |
Iterator<? extends LinearSeq<T>> |
LinearSeq.sliding(long size,
long step) |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.span(java.util.function.Predicate<? super T> predicate) |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.span(java.util.function.Predicate<? super T> predicate) |
Option<? extends LinearSeq<T>> |
LinearSeq.tailOption() |
<T1,T2> Tuple2<? extends LinearSeq<T1>,? extends LinearSeq<T2>> |
LinearSeq.unzip(java.util.function.Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<? extends LinearSeq<T1>,? extends LinearSeq<T2>> |
LinearSeq.unzip(java.util.function.Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
Copyright © 2016. All Rights Reserved.