| Package | Description |
|---|---|
| org.jooq.lambda |
This package contains useful extensions for interoperation with Java 8's lambda expressions and
FunctionalInterface types. |
| org.jooq.lambda.function |
This package contains function types of various degrees.
|
| org.jooq.lambda.tuple |
This package contains tuple types of various degrees.
|
| Modifier and Type | Method and Description |
|---|---|
default Tuple2<Seq<T>,Seq<T>> |
Seq.duplicate()
Duplicate a Streams into two equivalent Streams.
|
static <T> Tuple2<Seq<T>,Seq<T>> |
Seq.duplicate(java.util.stream.Stream<T> stream)
Duplicate a Streams into two equivalent Streams.
|
default Tuple2<Seq<T>,Seq<T>> |
Seq.partition(java.util.function.Predicate<? super T> predicate)
Partition a stream into two given a predicate.
|
static <T> Tuple2<Seq<T>,Seq<T>> |
Seq.partition(java.util.stream.Stream<T> stream,
java.util.function.Predicate<? super T> predicate)
Partition a stream into two given a predicate.
|
default Tuple2<Seq<T>,Seq<T>> |
Seq.splitAt(long position)
Split a stream at a given position.
|
static <T> Tuple2<Seq<T>,Seq<T>> |
Seq.splitAt(java.util.stream.Stream<T> stream,
long position)
Split a stream at a given position.
|
default Tuple2<Optional<T>,Seq<T>> |
Seq.splitAtHead()
Split a stream at the head.
|
static <T> Tuple2<Optional<T>,Seq<T>> |
Seq.splitAtHead(java.util.stream.Stream<T> stream)
Split a stream at the head.
|
static <T1,T2> Tuple2<Seq<T1>,Seq<T2>> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.BiFunction<T1,T2,Tuple2<U1,U2>> unzipper)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.Function<T1,U1> leftUnzipper,
java.util.function.Function<T2,U2> rightUnzipper)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.Function<Tuple2<T1,T2>,Tuple2<U1,U2>> unzipper)
Unzip one Stream into two.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Seq<Tuple2<K,V>> |
Seq.seq(Map<K,V> map)
Wrap a Map into a Seq.
|
default <U> Seq<Tuple2<T,U>> |
Seq.zip(Seq<U> other)
Zip two streams into one.
|
static <T1,T2> Seq<Tuple2<T1,T2>> |
Seq.zip(java.util.stream.Stream<T1> left,
java.util.stream.Stream<T2> right)
Zip two streams into one.
|
default Seq<Tuple2<T,Long>> |
Seq.zipWithIndex()
Zip a Stream with a corresponding Stream of indexes.
|
static <T> Seq<Tuple2<T,Long>> |
Seq.zipWithIndex(java.util.stream.Stream<T> stream)
Zip a Stream with a corresponding Stream of indexes.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,U> Seq<T> |
Seq.unfold(U seed,
java.util.function.Function<U,Optional<Tuple2<T,U>>> unfolder)
Unfold a function into a stream.
|
static <T1,T2> Tuple2<Seq<T1>,Seq<T2>> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.BiFunction<T1,T2,Tuple2<U1,U2>> unzipper)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.BiFunction<T1,T2,Tuple2<U1,U2>> unzipper)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.Function<T1,U1> leftUnzipper,
java.util.function.Function<T2,U2> rightUnzipper)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.Function<Tuple2<T1,T2>,Tuple2<U1,U2>> unzipper)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.Function<Tuple2<T1,T2>,Tuple2<U1,U2>> unzipper)
Unzip one Stream into two.
|
static <T1,T2,U1,U2> |
Seq.unzip(java.util.stream.Stream<Tuple2<T1,T2>> stream,
java.util.function.Function<Tuple2<T1,T2>,Tuple2<U1,U2>> unzipper)
Unzip one Stream into two.
|
| Modifier and Type | Method and Description |
|---|---|
default R |
Function2.apply(Tuple2<T1,T2> args)
Apply this function to the arguments.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Range<T extends Comparable<T>>
A range is a special
Tuple2 with two times the same type. |
| Modifier and Type | Method and Description |
|---|---|
Tuple2<T1,T2> |
Tuple2.clone() |
<U1> Tuple2<U1,T2> |
Tuple2.map1(Function1<T1,U1> function)
Apply attribute 1 as argument to a function and return a new tuple with the substituted argument.
|
<U2> Tuple2<T1,U2> |
Tuple2.map2(Function1<T2,U2> function)
Apply attribute 2 as argument to a function and return a new tuple with the substituted argument.
|
Tuple2<T2,T1> |
Tuple2.swap()
Get a tuple with the two attributes swapped.
|
static <T1,T2> Tuple2<T1,T2> |
Tuple.tuple(T1 v1,
T2 v2)
Construct a tuple of degree 2.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
Tuple2.intersect(Tuple2<T,T> left,
Tuple2<T,T> right)
The intersection of two ranges.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Tuple2.compareTo(Tuple2<T1,T2> other) |
Optional<Range<T>> |
Range.intersect(Tuple2<T,T> other)
The intersection of two ranges.
|
static <T extends Comparable<T>> |
Tuple2.intersect(Tuple2<T,T> left,
Tuple2<T,T> right)
The intersection of two ranges.
|
static <T extends Comparable<T>> |
Tuple2.intersect(Tuple2<T,T> left,
Tuple2<T,T> right)
The intersection of two ranges.
|
boolean |
Range.overlaps(Tuple2<T,T> other)
Whether two ranges overlap.
|
static <T extends Comparable<T>> |
Tuple2.overlaps(Tuple2<T,T> left,
Tuple2<T,T> right)
Whether two tuples overlap.
|
static <T extends Comparable<T>> |
Tuple2.overlaps(Tuple2<T,T> left,
Tuple2<T,T> right)
Whether two tuples overlap.
|
| Constructor and Description |
|---|
Range(Tuple2<T,T> tuple) |
Tuple2(Tuple2<T1,T2> tuple) |
Copyright © 2014. All Rights Reserved.