| Package | Description |
|---|---|
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
static u.OptionalFloat |
Numbers.createFloat(String str)
Convert a
String to a Float. |
static u.OptionalFloat |
u.OptionalFloat.empty() |
<E extends Exception> |
u.OptionalFloat.filter(Throwables.FloatPredicate<E> predicate) |
<E extends Exception> |
u.OptionalFloat.flatMap(Throwables.FloatFunction<u.OptionalFloat,E> mapper) |
static <K> u.OptionalFloat |
Maps.getFloat(Map<? super K,?> map,
K key)
Returns an empty
OptionalFloat if the specified map is empty, or no value found by the specified key, or the value is null. |
<E extends Exception> |
u.OptionalFloat.ifPresent(Throwables.FloatConsumer<E> action) |
<E extends Exception,E2 extends Exception> |
u.OptionalFloat.ifPresentOrElse(Throwables.FloatConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception> |
u.OptionalFloat.map(Throwables.FloatUnaryOperator<E> mapper) |
<E extends Exception> |
u.Optional.mapToFloat(Throwables.ToFloatFunction<? super T,E> mapper)
Map to float.
|
<E extends Exception> |
u.Nullable.mapToFloat(Throwables.ToFloatFunction<? super T,E> mapper)
Map to float.
|
<E extends Exception> |
u.OptionalInt.mapToFloat(Throwables.ToFloatFunction<Integer,E> mapper)
Map to float.
|
<E extends Exception> |
u.Nullable.mapToFloatIfNotNull(Throwables.ToFloatFunction<? super T,E> mapper)
Map to float if not null.
|
static u.OptionalFloat |
Iterables.max(float... a)
Returns
OptionalFloat.empty() if the specified Array/Collection is null or empty. |
static u.OptionalFloat |
Iterables.min(float... a)
Returns
OptionalFloat.empty() if the specified Array/Collection is null or empty. |
static u.OptionalFloat |
u.OptionalFloat.of(float value) |
static u.OptionalFloat |
u.OptionalFloat.ofNullable(Float val) |
<E extends Exception> |
u.OptionalFloat.or(Throwables.Supplier<u.OptionalFloat,E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static Pair<Float,u.OptionalFloat> |
Median.of(float... a)
Returns a
Pair with left is the value at the index of (a.length - 1) / 2 when the array is sorted,
and the right is the value at the index of a.length / 2 if the length of array is even. |
static Pair<Float,u.OptionalFloat> |
Median.of(float[] a,
int fromIndex,
int toIndex)
Returns a
Pair with left is the value at the index of (a.length - 1) / 2 when the array is sorted,
and the right is the value at the index of a.length / 2 if the length of array is even. |
| Modifier and Type | Method and Description |
|---|---|
int |
u.OptionalFloat.compareTo(u.OptionalFloat optional) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
u.OptionalFloat.flatMap(Throwables.FloatFunction<u.OptionalFloat,E> mapper) |
<E extends Exception> |
u.OptionalFloat.or(Throwables.Supplier<u.OptionalFloat,E> supplier) |
Copyright © 2021. All rights reserved.