| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
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> |
N.averageLong(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? super T,E> func)
Returns
0 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,E extends Exception> |
N.averageLong(Collection<? extends T> c,
Throwables.ToLongFunction<? super T,E> func)
Returns
0 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> |
N.averageLong(T[] a,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? super T,E> func)
Returns
0 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. |
static <T,E extends Exception> |
N.averageLong(T[] a,
Throwables.ToLongFunction<? super T,E> func)
Returns
0 if the specified Array/Collection is null or empty, or fromIndex == toIndex. |
u.OptionalDouble |
ExceptionalStream.averageLong(Throwables.ToLongFunction<? super T,? extends E> func) |
static <T,E extends Exception> |
N.mapToLong(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? 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.mapToLong(Collection<? extends T> c,
Throwables.ToLongFunction<? super T,E> func)
Map to long.
|
static <T,E extends Exception> |
N.mapToLong(T[] a,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? 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.mapToLong(T[] a,
Throwables.ToLongFunction<? super T,E> func)
Map to long.
|
<E extends Exception> |
u.Optional.mapToLong(Throwables.ToLongFunction<? super T,E> mapper)
Map to long.
|
<E extends Exception> |
u.Nullable.mapToLong(Throwables.ToLongFunction<? super T,E> mapper)
Map to long.
|
<E extends Exception> |
u.OptionalDouble.mapToLong(Throwables.ToLongFunction<Double,E> mapper)
Map to long.
|
<E extends Exception> |
u.OptionalInt.mapToLong(Throwables.ToLongFunction<Integer,E> mapper)
Map to long.
|
<E extends Exception> |
u.Nullable.mapToLongIfNotNull(Throwables.ToLongFunction<? super T,E> mapper)
Map to long if not null.
|
static <T,E extends Exception> |
N.sumLong(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumLong(Collection<? extends T> c,
Throwables.ToLongFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumLong(T[] a,
int fromIndex,
int toIndex,
Throwables.ToLongFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumLong(T[] a,
Throwables.ToLongFunction<? super T,E> func) |
u.OptionalLong |
ExceptionalStream.sumLong(Throwables.ToLongFunction<? super T,? extends E> func) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ToLongFunction<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.