Uses of Class
com.landawn.abacus.util.u.OptionalChar
Packages that use u.OptionalChar
-
Uses of u.OptionalChar in com.landawn.abacus.util
Fields in com.landawn.abacus.util with type parameters of type u.OptionalCharModifier and TypeFieldDescriptionstatic final ToCharFunction<u.OptionalChar>
Fn.GET_AS_CHAR
static final Predicate<u.OptionalChar>
Methods in com.landawn.abacus.util that return u.OptionalCharModifier and TypeMethodDescriptionstatic u.OptionalChar
u.OptionalChar.empty()
<E extends Exception>
u.OptionalCharu.OptionalChar.filter
(Throwables.CharPredicate<E> predicate) <E extends Exception>
u.OptionalCharCharList.findFirst
(Throwables.CharPredicate<E> predicate) <E extends Exception>
u.OptionalCharCharList.findLast
(Throwables.CharPredicate<E> predicate) CharList.first()
static u.OptionalChar
<E extends Exception>
u.OptionalCharu.OptionalChar.flatMap
(Throwables.CharFunction<u.OptionalChar, E> mapper) static <K> u.OptionalChar
Returns an emptyOptionalChar
if the specifiedmap
is empty, or no value found by the specifiedkey
, or the value isnull
.<E extends Exception>
u.OptionalCharu.OptionalChar.ifPresent
(Throwables.CharConsumer<E> action) <E extends Exception,
E2 extends Exception>
u.OptionalCharu.OptionalChar.ifPresentOrElse
(Throwables.CharConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.CharList.kthLargest
(int k) CharList.kthLargest
(int fromIndex, int toIndex, int k) CharList.last()
static u.OptionalChar
<E extends Exception>
u.OptionalCharu.OptionalChar.map
(Throwables.CharUnaryOperator<E> mapper) <E extends Exception>
u.OptionalCharu.Nullable.mapToChar
(Throwables.ToCharFunction<? super T, E> mapper) Map to char.<E extends Exception>
u.OptionalCharu.Optional.mapToChar
(Throwables.ToCharFunction<? super T, E> mapper) Map to char.<E extends Exception>
u.OptionalCharu.Nullable.mapToCharIfNotNull
(Throwables.ToCharFunction<? super T, E> mapper) Map to char if not null.CharList.max()
CharList.max
(int fromIndex, int toIndex) static u.OptionalChar
Iterables.max
(char... a) ReturnsOptionalChar.empty()
if the specifiedArray/Collection
isnull
or empty.CharList.median()
CharList.median
(int fromIndex, int toIndex) CharList.min()
CharList.min
(int fromIndex, int toIndex) static u.OptionalChar
Iterables.min
(char... a) ReturnsOptionalChar.empty()
if the specifiedArray/Collection
isnull
or empty.static u.OptionalChar
u.OptionalChar.of
(char value) static u.OptionalChar
u.OptionalChar.ofNullable
(Character val) <E extends Exception>
u.OptionalCharu.OptionalChar.or
(Throwables.Supplier<u.OptionalChar, E> supplier) <E extends Exception>
u.OptionalCharCharList.reduce
(Throwables.CharBinaryOperator<E> accumulator) This is equivalent to:Methods in com.landawn.abacus.util that return types with arguments of type u.OptionalCharModifier and TypeMethodDescriptionstatic Pair<Character,
u.OptionalChar> Median.of
(char... a) Returns aPair
withleft
is the value at the index of(a.length - 1) / 2
when the array is sorted, and theright
is the value at the index ofa.length / 2
if the length of array is even.static Pair<Character,
u.OptionalChar> Median.of
(char[] a, int fromIndex, int toIndex) Returns aPair
withleft
is the value at the index of(a.length - 1) / 2
when the array is sorted, and theright
is the value at the index ofa.length / 2
if the length of array is even.Methods in com.landawn.abacus.util with parameters of type u.OptionalCharMethod parameters in com.landawn.abacus.util with type arguments of type u.OptionalCharModifier and TypeMethodDescription<E extends Exception>
u.OptionalCharu.OptionalChar.flatMap
(Throwables.CharFunction<u.OptionalChar, E> mapper) <E extends Exception>
u.OptionalCharu.OptionalChar.or
(Throwables.Supplier<u.OptionalChar, E> supplier) -
Uses of u.OptionalChar in com.landawn.abacus.util.stream
Methods in com.landawn.abacus.util.stream that return u.OptionalCharModifier and TypeMethodDescriptionabstract <E extends Exception>
u.OptionalCharCharStream.findAny
(Throwables.CharPredicate<E> predicate) abstract <E extends Exception>
u.OptionalCharCharStream.findFirst
(Throwables.CharPredicate<E> predicate) abstract <E extends Exception,
E2 extends Exception>
u.OptionalCharCharStream.findFirstOrLast
(Throwables.CharPredicate<E> predicateForFirst, Throwables.CharPredicate<E> predicateForLast) abstract <E extends Exception>
u.OptionalCharCharStream.findLast
(Throwables.CharPredicate<E> predicate) Consider using:stream.reversed().findFirst(predicate)
for better performance if possible.abstract u.OptionalChar
CharStream.kthLargest
(int k) abstract u.OptionalChar
CharStream.max()
Returns anOptionalChar
describing the maximum element of this stream, or an empty optional if this stream is empty.abstract u.OptionalChar
CharStream.min()
Returns anOptionalChar
describing the minimum element of this stream, or an empty optional if this stream is empty.abstract u.OptionalChar
CharStream.reduce
(CharBinaryOperator op) Method parameters in com.landawn.abacus.util.stream with type arguments of type u.OptionalCharModifier and TypeMethodDescriptionabstract CharStream
CharStream.mapPartial
(CharFunction<u.OptionalChar> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamex