| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
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> |
N.averageInt(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? super T,E> func)
Returns
0 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,E extends Exception> |
N.averageInt(Collection<? extends T> c,
Throwables.ToIntFunction<? super T,E> func)
Returns
0 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> |
N.averageInt(T[] a,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? super T,E> func)
Returns
0 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. |
static <T,E extends Exception> |
N.averageInt(T[] a,
Throwables.ToIntFunction<? super T,E> func)
Returns
0 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,E extends Exception> |
Chain.hash(T value,
Throwables.ToIntFunction<? super T,E> func) |
<T,E extends Exception> |
Chain.HashCodeChain.hash(T value,
Throwables.ToIntFunction<? super T,E> func) |
static <T,E extends Exception> |
N.mapToInt(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? 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.mapToInt(Collection<? extends T> c,
Throwables.ToIntFunction<? super T,E> func)
Map to int.
|
static <T,E extends Exception> |
N.mapToInt(T[] a,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? 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.mapToInt(T[] a,
Throwables.ToIntFunction<? super T,E> func)
Map to int.
|
<E extends Exception> |
u.Optional.mapToInt(Throwables.ToIntFunction<? super T,E> mapper)
Map to int.
|
<E extends Exception> |
u.Nullable.mapToInt(Throwables.ToIntFunction<? super T,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalByte.mapToInt(Throwables.ToIntFunction<Byte,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalChar.mapToInt(Throwables.ToIntFunction<Character,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalDouble.mapToInt(Throwables.ToIntFunction<Double,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalFloat.mapToInt(Throwables.ToIntFunction<Float,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalLong.mapToInt(Throwables.ToIntFunction<Long,E> mapper)
Map to int.
|
<E extends Exception> |
u.OptionalShort.mapToInt(Throwables.ToIntFunction<Short,E> mapper)
Map to int.
|
<E extends Exception> |
u.Nullable.mapToIntIfNotNull(Throwables.ToIntFunction<? super T,E> mapper)
Map to int if not null.
|
static <T,E extends Exception> |
N.sumInt(Collection<? extends T> c,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumInt(Collection<? extends T> c,
Throwables.ToIntFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumInt(T[] a,
int fromIndex,
int toIndex,
Throwables.ToIntFunction<? super T,E> func) |
static <T,E extends Exception> |
N.sumInt(T[] a,
Throwables.ToIntFunction<? super T,E> func) |
u.OptionalLong |
ExceptionalStream.sumInt(Throwables.ToIntFunction<? super T,? extends E> func) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ToIntFunction<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.