| Package | Description |
|---|---|
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
static u.OptionalShort |
u.OptionalShort.empty() |
<E extends Exception> |
u.OptionalShort.filter(Throwables.ShortPredicate<E> predicate) |
<E extends Exception> |
u.OptionalShort.flatMap(Throwables.ShortFunction<u.OptionalShort,E> mapper) |
static <K> u.OptionalShort |
Maps.getShort(Map<? super K,?> map,
K key)
Returns an empty
OptionalShort if the specified map is empty, or no value found by the specified key, or the value is null. |
<E extends Exception> |
u.OptionalShort.ifPresent(Throwables.ShortConsumer<E> action) |
<E extends Exception,E2 extends Exception> |
u.OptionalShort.ifPresentOrElse(Throwables.ShortConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception> |
u.OptionalShort.map(Throwables.ShortUnaryOperator<E> mapper) |
<E extends Exception> |
u.Optional.mapToShort(Throwables.ToShortFunction<? super T,E> mapper)
Map to short.
|
<E extends Exception> |
u.Nullable.mapToShort(Throwables.ToShortFunction<? super T,E> mapper)
Map to short.
|
<E extends Exception> |
u.Nullable.mapToShortIfNotNull(Throwables.ToShortFunction<? super T,E> mapper)
Map to short if not null.
|
static u.OptionalShort |
Iterables.max(short... a)
Returns
OptionalShort.empty() if the specified Array/Collection is null or empty. |
static u.OptionalShort |
Iterables.min(short... a)
Returns
OptionalShort.empty() if the specified Array/Collection is null or empty. |
static u.OptionalShort |
u.OptionalShort.of(short value) |
static u.OptionalShort |
u.OptionalShort.ofNullable(Short val) |
<E extends Exception> |
u.OptionalShort.or(Throwables.Supplier<u.OptionalShort,E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static Pair<Short,u.OptionalShort> |
Median.of(short... 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<Short,u.OptionalShort> |
Median.of(short[] 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.OptionalShort.compareTo(u.OptionalShort optional) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
u.OptionalShort.flatMap(Throwables.ShortFunction<u.OptionalShort,E> mapper) |
<E extends Exception> |
u.OptionalShort.or(Throwables.Supplier<u.OptionalShort,E> supplier) |
Copyright © 2021. All rights reserved.