| Package | Description |
|---|---|
| com.landawn.abacus | |
| com.landawn.abacus.util | |
| com.landawn.abacus.util.stream |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Exception> |
DataSet.divideColumn(String columnName,
Tuple.Tuple2<String,String> newColumnNames,
Throwables.BiConsumer<T,Pair<Object,Object>,E> output) |
| Modifier and Type | Method and Description |
|---|---|
Pair<L,R> |
Pair.copy() |
static <L,R> Pair<L,R>[] |
Pair.emptyArray() |
static <K,V> Pair<K,V> |
Pair.from(Map.Entry<K,V> entry) |
static <L,R> Pair<L,R> |
Pair.of(L l,
R r) |
Pair<R,L> |
Pair.reverse()
Returns a new instance of Pair<R, L>.
|
Pair<A,B>[] |
BiIterator.toArray() |
Pair<T,E> |
Result.toPair() |
Pair<T1,T2> |
Tuple.Tuple2.toPair() |
static <T,L,R,E extends Exception> |
N.unzip(Collection<? extends T> c,
Throwables.BiConsumer<? super T,Pair<L,R>,E> unzip) |
static <T,L,R,LC extends Collection<L>,RC extends Collection<R>,E extends Exception> |
N.unzip(Collection<? extends T> c,
Throwables.BiConsumer<? super T,Pair<L,R>,E> unzip,
IntFunction<? extends Collection<?>> supplier) |
| Modifier and Type | Method and Description |
|---|---|
u.Optional<Pair<List<T>,Integer>> |
Multiset.allMaxOccurrences()
All max occurrences.
|
u.Optional<Pair<List<T>,Integer>> |
Multiset.allMinOccurrences()
All min occurrences.
|
<U> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.crossJoin(Collection<? extends U> b) |
static <K,V> Map<K,Pair<V,u.Nullable<V>>> |
Maps.difference(Map<K,V> map,
Map<K,V> map2) |
<E extends Exception> |
Pair.filter(Throwables.BiPredicate<? super L,? super R,E> predicate) |
<E extends Exception> |
Pair.filter(Throwables.Predicate<? super Pair<L,R>,E> predicate) |
<K> ExceptionalStream<Pair<T,T>,E> |
ExceptionalStream.fullJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<U> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.fullJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate) |
<U,K> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.fullJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper) |
<K> ExceptionalStream<Pair<T,List<T>>,E> |
ExceptionalStream.groupJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<U,K> ExceptionalStream<Pair<T,List<U>>,E> |
ExceptionalStream.groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper) |
<U,K,A,D> ExceptionalStream<Pair<T,D>,E> |
ExceptionalStream.groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Collector<? super U,A,D> downstream) |
<U,K> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BinaryOperator<U,? extends E> mergeFunction) |
<K> ExceptionalStream<Pair<T,T>,E> |
ExceptionalStream.innerJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<U> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.innerJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate) |
<U,K> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.innerJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper) |
static <L,R> Function<Pair<L,R>,L> |
Fn.left() |
<K> ExceptionalStream<Pair<T,T>,E> |
ExceptionalStream.leftJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<U> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.leftJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate) |
<U,K> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.leftJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper) |
u.Optional<Pair<T,Integer>> |
Multiset.maxOccurrences() |
u.Optional<Pair<T,Integer>> |
Multiset.minOccurrences() |
static <CK,K1 extends CK,V1,K2 extends CK,V2> |
Difference.MapDifference.of(Map<? extends K1,? extends V1> map1,
Map<? extends K2,? extends V2> map2) |
static Difference.MapDifference<Map<String,Object>,Map<String,Object>,Map<String,Pair<Object,Object>>> |
Difference.MapDifference.of(Object entity1,
Object entity2) |
static <L,R> BiFunction<L,R,Pair<L,R>> |
Fn.pair() |
static <L,R,E extends Exception> |
Fn.Fnn.pair() |
static <L,R> Function<Pair<L,R>,R> |
Fn.right() |
<K> ExceptionalStream<Pair<T,T>,E> |
ExceptionalStream.rightJoin(Collection<? extends T> b,
Throwables.Function<? super T,? extends K,? extends E> keyMapper) |
<U> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.rightJoin(Collection<? extends U> b,
Throwables.BiPredicate<? super T,? super U,? extends E> predicate) |
<U,K> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.rightJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper) |
static <K,V> Map<K,Pair<u.Nullable<V>,u.Nullable<V>>> |
Maps.symmetricDifference(Map<K,V> map,
Map<K,V> map2) |
List<Pair<A,B>> |
BiIterator.toList() |
static <T> Function<Pair<T,T>,List<T>> |
Fn.Pairs.toList() |
u.Optional<Pair<L,R>> |
Pair.toOptional() |
static <T> Function<Pair<T,T>,Set<T>> |
Fn.Pairs.toSet() |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
Pair.accept(Throwables.Consumer<? super Pair<L,R>,E> action) |
<E extends Exception> |
Pair.filter(Throwables.Predicate<? super Pair<L,R>,E> predicate) |
static <A,B> BiIterator<A,B> |
BiIterator.generate(BooleanSupplier hasNext,
Consumer<Pair<A,B>> output) |
static <A,B> BiIterator<A,B> |
BiIterator.generate(Consumer<Pair<A,B>> output)
Returns an infinite
BiIterator. |
static <A,B> BiIterator<A,B> |
BiIterator.generate(int fromIndex,
int toIndex,
IndexedConsumer<Pair<A,B>> output) |
<U,E extends Exception> |
Pair.map(Throwables.Function<? super Pair<L,R>,U,E> mapper) |
<E extends Exception> |
Pair.setIf(L newLeft,
R newRight,
Throwables.TriPredicate<? super Pair<L,R>,? super L,? super R,E> predicate)
Set to the specified
newLeft and newRight and returns true
if predicate returns true. |
<E extends Exception> |
Pair.setLeftIf(L newLeft,
Throwables.BiPredicate<? super Pair<L,R>,? super L,E> predicate)
Set to the specified
newLeft and returns true
if predicate returns true. |
<E extends Exception> |
Pair.setRightIf(R newRight,
Throwables.BiPredicate<? super Pair<L,R>,? super R,E> predicate)
Set to the specified
newRight and returns true
if predicate returns true. |
static <T,L,R> BiIterator<L,R> |
Iterators.unzip(Collection<? extends T> c,
BiConsumer<? super T,Pair<L,R>> unzip) |
static <T,L,R,E extends Exception> |
N.unzip(Collection<? extends T> c,
Throwables.BiConsumer<? super T,Pair<L,R>,E> unzip) |
static <T,L,R,LC extends Collection<L>,RC extends Collection<R>,E extends Exception> |
N.unzip(Collection<? extends T> c,
Throwables.BiConsumer<? super T,Pair<L,R>,E> unzip,
IntFunction<? extends Collection<?>> supplier) |
static <T,L,R> BiIterator<L,R> |
BiIterator.unzip(Iterator<? extends T> iter,
BiConsumer<? super T,Pair<L,R>> unzip) |
static <T,L,R> BiIterator<L,R> |
Iterators.unzip(Iterator<? extends T> iter,
BiConsumer<? super T,Pair<L,R>> unzip) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable,A,D> |
Collectors.maxAlll(Collector<T,A,D> downstream) |
static <T,A,D> Collector<T,?,Pair<u.Optional<T>,D>> |
Collectors.maxAlll(Comparator<? super T> comparator,
Collector<? super T,A,D> downstream) |
static <T extends Comparable,A,D> |
Collectors.minAlll(Collector<T,A,D> downstream) |
static <T,A,D> Collector<T,?,Pair<u.Optional<T>,D>> |
Collectors.minAlll(Comparator<? super T> comparator,
Collector<? super T,A,D> downstream) |
static <T extends Comparable> |
Collectors.minMax() |
static <T> Collector<T,?,u.Optional<Pair<T,T>>> |
Collectors.minMax(Comparator<? super T> comparator) |
static <T> Collector<T,?,u.Optional<Pair<T,T>>> |
Collectors.minMaxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T extends Comparable<? super T>> |
Collectors.minMaxForNonEmpty() |
static <T> Collector<T,?,Pair<T,T>> |
Collectors.minMaxForNonEmpty(Comparator<? super T> comparator) |
| Modifier and Type | Method and Description |
|---|---|
static <T,A,D,R> Collector<T,?,R> |
Collectors.maxAlll(Comparator<? super T> comparator,
Collector<? super T,A,D> downstream,
Function<Pair<u.Optional<T>,D>,R> finisher) |
static <T,A,D,R> Collector<T,?,R> |
Collectors.minAlll(Comparator<? super T> comparator,
Collector<? super T,A,D> downstream,
Function<Pair<u.Optional<T>,D>,R> finisher) |
Copyright © 2021. All rights reserved.