| Package | Description |
|---|---|
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
static u.OptionalChar |
u.OptionalChar.empty() |
<E extends Exception> |
u.OptionalChar.filter(Throwables.CharPredicate<E> predicate) |
static u.OptionalChar |
StringUtil.firstChar(String str) |
<E extends Exception> |
u.OptionalChar.flatMap(Throwables.CharFunction<u.OptionalChar,E> mapper) |
static <K> u.OptionalChar |
Maps.getChar(Map<? super K,?> map,
K key)
Returns an empty
OptionalChar if the specified map is empty, or no value found by the specified key, or the value is null. |
<E extends Exception> |
u.OptionalChar.ifPresent(Throwables.CharConsumer<E> action) |
<E extends Exception,E2 extends Exception> |
u.OptionalChar.ifPresentOrElse(Throwables.CharConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
static u.OptionalChar |
StringUtil.lastChar(String str) |
<E extends Exception> |
u.OptionalChar.map(Throwables.CharUnaryOperator<E> mapper) |
<E extends Exception> |
u.Optional.mapToChar(Throwables.ToCharFunction<? super T,E> mapper)
Map to char.
|
<E extends Exception> |
u.Nullable.mapToChar(Throwables.ToCharFunction<? super T,E> mapper)
Map to char.
|
<E extends Exception> |
u.Nullable.mapToCharIfNotNull(Throwables.ToCharFunction<? super T,E> mapper)
Map to char if not null.
|
static u.OptionalChar |
Iterables.max(char... a)
Returns
OptionalChar.empty() if the specified Array/Collection is null or empty. |
static u.OptionalChar |
Iterables.min(char... a)
Returns
OptionalChar.empty() if the specified Array/Collection is null or empty. |
static u.OptionalChar |
u.OptionalChar.of(char value) |
static u.OptionalChar |
u.OptionalChar.ofNullable(Character val) |
<E extends Exception> |
u.OptionalChar.or(Throwables.Supplier<u.OptionalChar,E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static Pair<Character,u.OptionalChar> |
Median.of(char... 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<Character,u.OptionalChar> |
Median.of(char[] 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.OptionalChar.compareTo(u.OptionalChar optional) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
u.OptionalChar.flatMap(Throwables.CharFunction<u.OptionalChar,E> mapper) |
<E extends Exception> |
u.OptionalChar.or(Throwables.Supplier<u.OptionalChar,E> supplier) |
Copyright © 2021. All rights reserved.