| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.stream |
| Modifier and Type | Method and Description |
|---|---|
u.OptionalDouble |
KahanSummation.average() |
static <T extends Number> |
Iterables.averageDouble(Collection<? extends T> c)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageDouble(Collection<? extends T> c,
int fromIndex,
int toIndex)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageDouble(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageDouble(Collection<? extends T> c,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageDouble(T[] a)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageDouble(T[] a,
int fromIndex,
int toIndex)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageDouble(T[] a,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageDouble(T[] a,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
u.OptionalDouble |
ExceptionalStream.averageDouble(Throwables.ToDoubleFunction<? super T,? extends E> func) |
static <T extends Number> |
Iterables.averageInt(Collection<? extends T> c)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageInt(Collection<? extends T> c,
int fromIndex,
int toIndex)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageInt(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageInt(Collection<? extends T> c,
Throwables.ToIntFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageInt(T[] a)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageInt(T[] a,
int fromIndex,
int toIndex)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageInt(T[] a,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageInt(T[] a,
Throwables.ToIntFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
u.OptionalDouble |
ExceptionalStream.averageInt(Throwables.ToIntFunction<? super T,? extends E> func) |
static <T extends Number> |
Iterables.averageLong(Collection<? extends T> c)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageLong(Collection<? extends T> c,
int fromIndex,
int toIndex)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageLong(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageLong(Collection<? extends T> c,
Throwables.ToLongFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageLong(T[] a)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T extends Number> |
Iterables.averageLong(T[] a,
int fromIndex,
int toIndex)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageLong(T[] a,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
static <T,E extends Exception> |
Iterables.averageLong(T[] a,
Throwables.ToLongFunction<? super T,E> func)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
u.OptionalDouble |
ExceptionalStream.averageLong(Throwables.ToLongFunction<? super T,? extends E> func) |
u.OptionalDouble |
Multiset.averageOfOccurrences()
Average of occurrences.
|
static u.OptionalDouble |
Numbers.createDouble(String str)
Convert a
String to a Double. |
static u.OptionalDouble |
u.OptionalDouble.empty() |
<E extends Exception> |
u.OptionalDouble.filter(Throwables.DoublePredicate<E> predicate) |
<E extends Exception> |
u.OptionalDouble.flatMap(Throwables.DoubleFunction<u.OptionalDouble,E> mapper) |
<E extends Exception> |
u.OptionalDouble.ifPresent(Throwables.DoubleConsumer<E> action) |
<E extends Exception,E2 extends Exception> |
u.OptionalDouble.ifPresentOrElse(Throwables.DoubleConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception> |
u.OptionalDouble.map(Throwables.DoubleUnaryOperator<E> mapper) |
<E extends Exception> |
u.Optional.mapToDouble(Throwables.ToDoubleFunction<? super T,E> mapper)
Map to double.
|
<E extends Exception> |
u.Nullable.mapToDouble(Throwables.ToDoubleFunction<? super T,E> mapper)
Map to double.
|
<E extends Exception> |
u.OptionalFloat.mapToDouble(Throwables.ToDoubleFunction<Float,E> mapper)
Map to double.
|
<E extends Exception> |
u.OptionalInt.mapToDouble(Throwables.ToDoubleFunction<Integer,E> mapper)
Map to double.
|
<E extends Exception> |
u.OptionalLong.mapToDouble(Throwables.ToDoubleFunction<Long,E> mapper)
Map to double.
|
<E extends Exception> |
u.Nullable.mapToDoubleIfNotNull(Throwables.ToDoubleFunction<? super T,E> mapper)
Map to double if not null.
|
static u.OptionalDouble |
Iterables.max(double... a)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty. |
static u.OptionalDouble |
Iterables.min(double... a)
Returns
OptionalDouble.empty() if the specified Array/Collection is null or empty. |
static u.OptionalDouble |
u.OptionalDouble.of(double value) |
static u.OptionalDouble |
u.OptionalDouble.ofNullable(Double val) |
<E extends Exception> |
u.OptionalDouble.or(Throwables.Supplier<u.OptionalDouble,E> supplier) |
u.OptionalDouble |
ExceptionalStream.sumDouble(Throwables.ToDoubleFunction<? super T,? extends E> func) |
| Modifier and Type | Method and Description |
|---|---|
int |
u.OptionalDouble.compareTo(u.OptionalDouble optional) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
u.OptionalDouble.flatMap(Throwables.DoubleFunction<u.OptionalDouble,E> mapper) |
<E extends Exception> |
u.OptionalDouble.or(Throwables.Supplier<u.OptionalDouble,E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,u.OptionalDouble> |
Collectors.averagingDouble(ToDoubleFunction<? super T> mapper) |
static <T> Collector<T,?,u.OptionalDouble> |
Collectors.averagingInt(ToIntFunction<? super T> mapper) |
static <T> Collector<T,?,u.OptionalDouble> |
Collectors.averagingLong(ToLongFunction<? super T> mapper) |
Copyright © 2021. All rights reserved.