| Package | Description |
|---|---|
| com.landawn.abacus | |
| com.landawn.abacus.parser | |
| com.landawn.abacus.util | |
| com.landawn.abacus.util.stream |
| Modifier and Type | Method and Description |
|---|---|
u.Optional<DataSet> |
PaginatedDataSet.firstPage()
Returns the first page.
|
u.Optional<Object[]> |
DataSet.firstRow() |
<T> u.Optional<T> |
DataSet.firstRow(Class<? extends T> rowClass) |
<T> u.Optional<T> |
DataSet.firstRow(Class<? extends T> rowClass,
Collection<String> columnNames) |
<T> u.Optional<T> |
DataSet.firstRow(IntFunction<? extends T> rowSupplier) |
<T> u.Optional<T> |
DataSet.firstRow(IntFunction<? extends T> rowSupplier,
Collection<String> columnNames) |
u.Optional<DataSet> |
PaginatedDataSet.lastPage()
Returns the last page.
|
u.Optional<Object[]> |
DataSet.lastRow() |
<T> u.Optional<T> |
DataSet.lastRow(Class<? extends T> rowClass) |
<T> u.Optional<T> |
DataSet.lastRow(Class<? extends T> rowClass,
Collection<String> columnNames) |
<T> u.Optional<T> |
DataSet.lastRow(IntFunction<? extends T> rowSupplier) |
<T> u.Optional<T> |
DataSet.lastRow(IntFunction<? extends T> rowSupplier,
Collection<String> columnNames) |
| Modifier and Type | Field and Description |
|---|---|
u.Optional<String> |
ParserUtil.PropInfo.columnName |
u.Optional<String> |
ParserUtil.EntityInfo.tableName |
| Modifier and Type | Field and Description |
|---|---|
static u.Optional<Boolean> |
u.Optional.FALSE
Presents
Boolean.FALSE. |
static u.Optional<Boolean> |
u.Optional.TRUE
Presents
Boolean.TRUE. |
| 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.
|
<R> u.Optional<R> |
ExceptionalStream.applyIfNotEmpty(Throwables.Function<? super ExceptionalStream<T,E>,R,? extends E> func) |
<R,E extends Exception> |
Multiset.applyIfNotEmpty(Throwables.Function<? super Multiset<T>,R,E> func)
Apply if not empty.
|
u.Optional<Boolean> |
u.OptionalBoolean.boxed() |
u.Optional<Character> |
u.OptionalChar.boxed() |
u.Optional<Byte> |
u.OptionalByte.boxed() |
u.Optional<Short> |
u.OptionalShort.boxed() |
u.Optional<Integer> |
u.OptionalInt.boxed() |
u.Optional<Long> |
u.OptionalLong.boxed() |
u.Optional<Float> |
u.OptionalFloat.boxed() |
u.Optional<Double> |
u.OptionalDouble.boxed() |
static u.Optional<BigDecimal> |
Numbers.createBigDecimal(String str)
Convert a
String to a BigDecimal. |
static u.Optional<BigInteger> |
Numbers.createBigInteger(String str)
Convert a
String to a BigInteger; since 3.2 it
handles hex (0x or #) and octal (0) notations. |
static u.Optional<Number> |
Numbers.createNumber(String str)
Turns a string value into a java.lang.Number.
|
u.Optional<T> |
ExceptionalStream.elementAt(long position) |
static <T> u.Optional<T> |
u.Optional.empty() |
<E extends Exception> |
Pair.filter(Throwables.BiPredicate<? super L,? super R,E> predicate) |
<E extends Exception> |
Tuple.Tuple2.filter(Throwables.BiPredicate<? super T1,? super T2,E> predicate) |
<E extends Exception> |
Pair.filter(Throwables.Predicate<? super Pair<L,R>,E> predicate) |
<E extends Exception> |
u.Optional.filter(Throwables.Predicate<? super T,E> predicate) |
<E extends Exception> |
Tuple.filter(Throwables.Predicate<? super TP,E> predicate) |
<E extends Exception> |
Triple.filter(Throwables.Predicate<? super Triple<L,M,R>,E> predicate) |
<E extends Exception> |
Triple.filter(Throwables.TriPredicate<? super L,? super M,? super R,E> predicate) |
<E extends Exception> |
Tuple.Tuple3.filter(Throwables.TriPredicate<? super T1,? super T2,? super T3,E> predicate) |
<E extends Exception> |
u.Nullable.filterIfNotNull(Throwables.Predicate<? super T,E> predicate)
Filter if not null.
|
u.Optional<T> |
ExceptionalStream.findAny(Throwables.Predicate<? super T,E> predicate) |
u.Optional<T> |
ExceptionalStream.findFirst(Throwables.Predicate<? super T,E> predicate) |
u.Optional<T> |
ExceptionalStream.findLast(Throwables.Predicate<? super T,E> predicate)
Consider using:
stream.reversed().findFirst(predicate) for better performance if possible. |
u.Optional<T> |
ExceptionalStream.first() |
<U,E extends Exception> |
u.Optional.flatMap(Throwables.Function<? super T,u.Optional<U>,E> mapper) |
<E extends Exception> |
u.Optional.ifPresent(Throwables.Consumer<? super T,E> action) |
<E extends Exception,E2 extends Exception> |
u.Optional.ifPresentOrElse(Throwables.Consumer<? super T,E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
u.Optional<Range<T>> |
Range.intersection(Range<T> other)
Calculate the intersection of
this and an overlapping Range. |
u.Optional<T> |
ExceptionalStream.kthLargest(int k,
Comparator<? super T> comparator) |
u.Optional<T> |
ExceptionalStream.last() |
<T,E extends Exception> |
u.OptionalBoolean.mapToNonNull(Throwables.BooleanFunction<T,E> mapper) |
<T,E extends Exception> |
u.OptionalByte.mapToNonNull(Throwables.ByteFunction<T,E> mapper) |
<T,E extends Exception> |
u.OptionalChar.mapToNonNull(Throwables.CharFunction<T,E> mapper) |
<T,E extends Exception> |
u.OptionalDouble.mapToNonNull(Throwables.DoubleFunction<T,E> mapper) |
<T,E extends Exception> |
u.OptionalFloat.mapToNonNull(Throwables.FloatFunction<T,E> mapper) |
<U,E extends Exception> |
u.Optional.mapToNonNull(Throwables.Function<? super T,? extends U,E> mapper) |
<U,E extends Exception> |
u.Nullable.mapToNonNull(Throwables.Function<? super T,? extends U,E> mapper) |
<T,E extends Exception> |
u.OptionalInt.mapToNonNull(Throwables.IntFunction<T,E> mapper) |
<T,E extends Exception> |
u.OptionalLong.mapToNonNull(Throwables.LongFunction<T,E> mapper) |
<T,E extends Exception> |
u.OptionalShort.mapToNonNull(Throwables.ShortFunction<T,E> mapper) |
<U,E extends Exception> |
u.Nullable.mapToNonNullIfNotNull(Throwables.Function<? super T,? extends U,E> mapper)
Map if not null.
|
u.Optional<T> |
ExceptionalStream.max(Comparator<? super T> comparator) |
u.Optional<T> |
ExceptionalStream.maxBy(Function<? super T,? extends Comparable> keyMapper) |
u.Optional<Pair<T,Integer>> |
Multiset.maxOccurrences() |
u.Optional<T> |
ExceptionalStream.min(Comparator<? super T> comparator) |
u.Optional<T> |
ExceptionalStream.minBy(Function<? super T,? extends Comparable> keyMapper) |
u.Optional<Pair<T,Integer>> |
Multiset.minOccurrences() |
static u.Optional<String> |
u.Optional.of(String value) |
static <T> u.Optional<T> |
u.Optional.of(T value) |
static u.Optional<String> |
u.Optional.ofNullable(String value) |
static <T> u.Optional<T> |
u.Optional.ofNullable(T value) |
u.Optional<T> |
ExceptionalStream.onlyOne() |
<E extends Exception> |
u.Optional.or(Throwables.Supplier<u.Optional<? extends T>,E> supplier) |
u.Optional<Map<Percentage,T>> |
ExceptionalStream.percentiles(Comparator<? super T> comparator) |
<E2 extends Exception> |
ExceptionalStream.reduce(Throwables.BinaryOperator<T,? extends E2> accumulator) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
char delimiterOfInclusiveBeginIndex)
Returns an empty
Optional if N.isNullOrEmpty(str) || str.indexOf(delimiterOfInclusiveBeginIndex) < 0,
otherwise an Optional with String value: str.substring(str.indexOf(delimiterOfInclusiveBeginIndex)) is returned. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
char delimiterOfInclusiveBeginIndex,
int exclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
int inclusiveBeginIndex)
Returns an empty
Optional if inclusiveBeginIndex < 0,
otherwise an Optional with String value: str.substring(inclusiveBeginIndex) is returned. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
int inclusiveBeginIndex,
char delimiterOfExclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
int inclusiveBeginIndex,
int exclusiveEndIndex)
Returns an empty
Optional if inclusiveBeginIndex < 0 || exclusiveEndIndex < 0 || inclusiveBeginIndex > exclusiveEndIndex,
otherwise an Optional with String value: str.substring(exclusiveBeginIndex, exclusiveEndIndex) is returned. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
int inclusiveBeginIndex,
IntUnaryOperator funcOfExclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
int inclusiveBeginIndex,
String delimiterOfExclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
IntUnaryOperator funcOfInclusiveBeginIndex,
int exclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
String delimiterOfInclusiveBeginIndex)
Returns an empty
Optional if N.isNullOrEmpty(str) || str.indexOf(delimiterOfInclusiveBeginIndex) < 0,
otherwise an Optional with String value: str.substring(str.indexOf(delimiterOfInclusiveBeginIndex)) is returned. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substring(String str,
String delimiterOfInclusiveBeginIndex,
int exclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringAfter(String str,
String delimiterOfExclusiveBeginIndex)
Returns the substring after first
delimiterOfExclusiveBeginIndex if it exists, otherwise return null String. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringAfterLast(String str,
String delimiterOfExclusiveBeginIndex)
Returns the substring after last
delimiterOfExclusiveBeginIndex if it exists, otherwise return null String. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBefore(String str,
String delimiterOfExclusiveEndIndex)
Returns the substring before first
delimiterOfExclusiveBeginIndex if it exists, otherwise return null String. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBeforeLast(String str,
String delimiterOfExclusiveEndIndex)
Returns the substring last first
delimiterOfExclusiveBeginIndex if it exists, otherwise return null String. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
char delimiterOfExclusiveBeginIndex,
char delimiterOfExclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
char delimiterOfExclusiveBeginIndex,
int exclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
int exclusiveBeginIndex,
char delimiterOfExclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
int exclusiveBeginIndex,
int exclusiveEndIndex)
Returns an empty
Optional if exclusiveBeginIndex < 0 || exclusiveEndIndex < 0 || exclusiveBeginIndex >= exclusiveEndIndex,
otherwise an Optional with String value: str.substring(exclusiveBeginIndex + 1, exclusiveEndIndex) is returned. |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
int exclusiveBeginIndex,
IntUnaryOperator funcOfExclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
int exclusiveBeginIndex,
String delimiterOfExclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
IntUnaryOperator funcOfExclusiveBeginIndex,
int exclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
String delimiterOfExclusiveBeginIndex,
int exclusiveEndIndex) |
static u.Optional<String> |
StringUtil.MoreStringUtil.substringBetween(String str,
String delimiterOfExclusiveBeginIndex,
String delimiterOfExclusiveEndIndex) |
u.Optional<Pair<L,R>> |
Pair.toOptional() |
u.Optional<Triple<L,M,R>> |
Triple.toOptional() |
u.Optional<TP> |
Tuple.toOptional() |
u.Optional<T> |
u.Nullable.toOptional() |
| Modifier and Type | Method and Description |
|---|---|
static <T> u.Nullable<T> |
u.Nullable.from(u.Optional<T> optional) |
static <T> ExceptionalStream<T,RuntimeException> |
ExceptionalStream.Seq.of(u.Optional<T> op) |
static <T,E extends Exception> |
ExceptionalStream.of(u.Optional<T> op) |
| Modifier and Type | Method and Description |
|---|---|
<U,E extends Exception> |
u.Optional.flatMap(Throwables.Function<? super T,u.Optional<U>,E> mapper) |
<E extends Exception> |
u.Optional.or(Throwables.Supplier<u.Optional<? extends T>,E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,u.Optional<BigDecimal>> |
Collectors.averagingBigDecimal(Function<? super T,BigDecimal> mapper) |
static <T> Collector<T,?,u.Optional<BigDecimal>> |
Collectors.averagingBigInteger(Function<? super T,BigInteger> mapper) |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.first()
Only works for sequential Stream.
|
static <T> Collector<T,?,u.Optional<T>> |
Collectors.last()
Only works for sequential Stream.
|
static <T extends Comparable<? super T>> |
Collectors.max() |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.max(Comparator<? super T> comparator) |
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> Collector<T,?,u.Optional<T>> |
Collectors.maxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T extends Comparable<? super T>> |
Collectors.min() |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.min(Comparator<? super T> comparator) |
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> Collector<T,?,u.Optional<T>> |
Collectors.minBy(Function<? super T,? extends Comparable> keyMapper) |
static <T extends Comparable> |
Collectors.minMax() |
static <T> Collector<T,?,u.Optional<Pair<T,T>>> |
Collectors.minMax(Comparator<? super T> comparator) |
static <T,R> Collector<T,?,u.Optional<R>> |
Collectors.minMax(Comparator<? super T> comparator,
BiFunction<? super T,? super T,? extends R> finisher)
It's copied from StreamEx: https://github.com/amaembo/streamex under Apache License v2 and may be modified.
|
static <T> Collector<T,?,u.Optional<Pair<T,T>>> |
Collectors.minMaxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T,R> Collector<T,?,u.Optional<R>> |
Collectors.minMaxBy(Function<? super T,? extends Comparable> keyMapper,
BiFunction<? super T,? super T,? extends R> finisher) |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.onlyOne()
DuplicatedResultException is threw if there are more than one values are collected. |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.onlyOne(Predicate<? super T> predicate)
DuplicatedResultException is threw if there are more than one values are collected. |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.reducing(BinaryOperator<T> op) |
static <T,U> Collector<T,?,u.Optional<U>> |
Collectors.reducing(Function<? super T,? extends U> mapper,
BinaryOperator<U> op) |
| 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.