| 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)
findAllIndicesBetween("3[a2[c]]2[a]", '[', ']') = [[2, 7], [10, 11]]. |
<E extends Exception> |
u.OptionalChar.flatMap(Throwables.CharFunction<u.OptionalChar,E> mapper) |
<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 |
|---|---|
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.