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,K,V> Map<K,V> |
Seq.toMap(java.util.stream.Stream<Tuple2<K,V>> stream)
Collect a Stream of
Tuple2 into a Map. |
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() |
<T2> Tuple2<T1,T2> |
Tuple1.concat(T2 value)
Concatenate a value to this tuple.
|
<T2> Tuple2<T1,T2> |
Tuple1.concat(Tuple1<T2> tuple)
Concatenate a tuple to this tuple.
|
<T1,T2> Tuple2<T1,T2> |
Tuple0.concat(Tuple2<T1,T2> tuple)
Concatenate a tuple to this tuple.
|
<U1> Tuple2<U1,T2> |
Tuple2.map1(Function1<? super T1,? extends 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<? super T2,? extends 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,A1,A2,D1,D2> |
Tuple.collectors(java.util.stream.Collector<T,A1,D1> collector1,
java.util.stream.Collector<T,A2,D2> collector2)
Construct a tuple collector of degree 2.
|
static <T,A1,A2,D1,D2> |
Tuple.collectors(java.util.stream.Collector<T,A1,D1> collector1,
java.util.stream.Collector<T,A2,D2> collector2)
Construct a tuple collector of degree 2.
|
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) |
<T1,T2> Tuple2<T1,T2> |
Tuple0.concat(Tuple2<T1,T2> tuple)
Concatenate a tuple to this tuple.
|
<T2,T3> Tuple3<T1,T2,T3> |
Tuple1.concat(Tuple2<T2,T3> tuple)
Concatenate a tuple to this tuple.
|
<T3,T4> Tuple4<T1,T2,T3,T4> |
Tuple2.concat(Tuple2<T3,T4> tuple)
Concatenate a tuple to this tuple.
|
<T4,T5> Tuple5<T1,T2,T3,T4,T5> |
Tuple3.concat(Tuple2<T4,T5> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6> Tuple6<T1,T2,T3,T4,T5,T6> |
Tuple4.concat(Tuple2<T5,T6> tuple)
Concatenate a tuple to this tuple.
|
<T6,T7> Tuple7<T1,T2,T3,T4,T5,T6,T7> |
Tuple5.concat(Tuple2<T6,T7> tuple)
Concatenate a tuple to this tuple.
|
<T7,T8> Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> |
Tuple6.concat(Tuple2<T7,T8> tuple)
Concatenate a tuple to this tuple.
|
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 © 2015. All Rights Reserved.