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