| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
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> |
N.averageDouble(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
0 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,E extends Exception> |
N.averageDouble(Collection<? extends T> c,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
0 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> |
N.averageDouble(T[] a,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
0 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. |
static <T,E extends Exception> |
N.averageDouble(T[] a,
Throwables.ToDoubleFunction<? super T,E> func)
Returns
0 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,E extends Exception> |
N.mapToDouble(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func)
Mostly it's designed for one-step operation to complete the operation in one step.
|
static <T,E extends Exception> |
N.mapToDouble(Collection<? extends T> c,
Throwables.ToDoubleFunction<? super T,E> func)
Map to double.
|
static <T,E extends Exception> |
N.mapToDouble(T[] a,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func)
Mostly it's designed for one-step operation to complete the operation in one step.
|
static <T,E extends Exception> |
N.mapToDouble(T[] a,
Throwables.ToDoubleFunction<? super T,E> func)
Map to double.
|
<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 <T,E extends Exception> |
N.sumDouble(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumDouble(Collection<? extends T> c,
Throwables.ToDoubleFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumDouble(T[] a,
int fromIndex,
int toIndex,
Throwables.ToDoubleFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumDouble(T[] a,
Throwables.ToDoubleFunction<? super T,E> func) |
u.OptionalDouble |
ExceptionalStream.sumDouble(Throwables.ToDoubleFunction<? super T,? extends E> func) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ToDoubleFunction<T>
Refer to JDK API documentation at: https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html
|
Copyright © 2021. All rights reserved.