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 |
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>
Non-empty
Stream , consisting of a head , and tail . |
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<? extends LinearSeq<T>> |
LinearSeq.combinations() |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.combinations(int k) |
LinearSeq<T> |
LinearSeq.distinct() |
LinearSeq<T> |
LinearSeq.distinctBy(Comparator<? super T> comparator) |
<U> LinearSeq<T> |
LinearSeq.distinctBy(Function<? super T,? extends U> keyExtractor) |
LinearSeq<T> |
LinearSeq.drop(int n) |
LinearSeq<T> |
LinearSeq.dropRight(int n) |
LinearSeq<T> |
LinearSeq.dropUntil(Predicate<? super T> predicate) |
LinearSeq<T> |
LinearSeq.dropWhile(Predicate<? super T> predicate) |
LinearSeq<T> |
LinearSeq.filter(Predicate<? super T> predicate) |
<U> LinearSeq<U> |
LinearSeq.flatMap(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(Function<? super T,? extends U> mapper) |
static <T> LinearSeq<T> |
LinearSeq.narrow(LinearSeq<? extends T> linearSeq)
Narrows a widened
LinearSeq<? extends T> to LinearSeq<T>
by performing a type-safe cast. |
LinearSeq<T> |
LinearSeq.padTo(int length,
T element) |
LinearSeq<T> |
LinearSeq.patch(int from,
Iterable<? extends T> that,
int replaced) |
LinearSeq<T> |
LinearSeq.peek(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(Predicate<? super T> predicate) |
LinearSeq<T> |
LinearSeq.removeAll(T element) |
LinearSeq<T> |
LinearSeq.removeAt(int index) |
LinearSeq<T> |
LinearSeq.removeFirst(Predicate<T> predicate) |
LinearSeq<T> |
LinearSeq.removeLast(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,
BiFunction<? super T,? super T,? extends T> operation) |
<U> LinearSeq<U> |
LinearSeq.scanLeft(U zero,
BiFunction<? super U,? super T,? extends U> operation) |
<U> LinearSeq<U> |
LinearSeq.scanRight(U zero,
BiFunction<? super T,? super U,? extends U> operation) |
LinearSeq<T> |
LinearSeq.shuffle() |
LinearSeq<T> |
LinearSeq.slice(int beginIndex,
int endIndex) |
<U> LinearSeq<T> |
LinearSeq.sortBy(Comparator<? super U> comparator,
Function<? super T,? extends U> mapper) |
<U extends Comparable<? super U>> |
LinearSeq.sortBy(Function<? super T,? extends U> mapper) |
LinearSeq<T> |
LinearSeq.sorted() |
LinearSeq<T> |
LinearSeq.sorted(Comparator<? super T> comparator) |
LinearSeq<T> |
LinearSeq.subSequence(int beginIndex) |
LinearSeq<T> |
LinearSeq.subSequence(int beginIndex,
int endIndex) |
LinearSeq<T> |
LinearSeq.tail() |
LinearSeq<T> |
LinearSeq.take(int n) |
LinearSeq<T> |
LinearSeq.takeRight(int n) |
LinearSeq<T> |
LinearSeq.takeUntil(Predicate<? super T> predicate) |
LinearSeq<T> |
LinearSeq.takeWhile(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<? extends U> that) |
<U> LinearSeq<Tuple2<T,U>> |
LinearSeq.zipAll(Iterable<? extends U> that,
T thisElem,
U thatElem) |
<U,R> LinearSeq<R> |
LinearSeq.zipWith(Iterable<? extends U> that,
BiFunction<? super T,? super U,? extends R> mapper) |
LinearSeq<Tuple2<T,Integer>> |
LinearSeq.zipWithIndex() |
<U> LinearSeq<U> |
LinearSeq.zipWithIndex(BiFunction<? super T,? super Integer,? extends U> mapper) |
Modifier and Type | Method and Description |
---|---|
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.combinations() |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.combinations(int k) |
Iterator<? extends LinearSeq<T>> |
LinearSeq.crossProduct(int power) |
<C> Map<C,? extends LinearSeq<T>> |
LinearSeq.groupBy(Function<? super T,? extends C> classifier) |
Iterator<? extends LinearSeq<T>> |
LinearSeq.grouped(int size) |
Option<? extends LinearSeq<T>> |
LinearSeq.initOption() |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.partition(Predicate<? super T> predicate) |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.partition(Predicate<? super T> predicate) |
LinearSeq<? extends LinearSeq<T>> |
LinearSeq.permutations() |
Iterator<? extends LinearSeq<T>> |
LinearSeq.sliding(int size) |
Iterator<? extends LinearSeq<T>> |
LinearSeq.sliding(int size,
int step) |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.span(Predicate<? super T> predicate) |
Tuple2<? extends LinearSeq<T>,? extends LinearSeq<T>> |
LinearSeq.span(Predicate<? super T> predicate) |
Option<? extends LinearSeq<T>> |
LinearSeq.tailOption() |
<T1,T2> Tuple2<? extends LinearSeq<T1>,? extends LinearSeq<T2>> |
LinearSeq.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<? extends LinearSeq<T1>,? extends LinearSeq<T2>> |
LinearSeq.unzip(Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
Modifier and Type | Method and Description |
---|---|
static <T> LinearSeq<T> |
LinearSeq.narrow(LinearSeq<? extends T> linearSeq)
Narrows a widened
LinearSeq<? extends T> to LinearSeq<T>
by performing a type-safe cast. |
Copyright © 2016. All Rights Reserved.