Uses of Class
com.landawn.abacus.util.u.OptionalByte
Packages that use u.OptionalByte
-
Uses of u.OptionalByte in com.landawn.abacus.util
Fields in com.landawn.abacus.util with type parameters of type u.OptionalByteModifier and TypeFieldDescriptionstatic final ToByteFunction<u.OptionalByte>
Fn.GET_AS_BYTE
static final Predicate<u.OptionalByte>
Methods in com.landawn.abacus.util that return u.OptionalByteModifier and TypeMethodDescriptionstatic u.OptionalByte
u.OptionalByte.empty()
<E extends Exception>
u.OptionalByteu.OptionalByte.filter
(Throwables.BytePredicate<E> predicate) <E extends Exception>
u.OptionalByteByteList.findFirst
(Throwables.BytePredicate<E> predicate) <E extends Exception>
u.OptionalByteByteList.findLast
(Throwables.BytePredicate<E> predicate) ByteIterator.first()
ByteList.first()
<E extends Exception>
u.OptionalByteu.OptionalByte.flatMap
(Throwables.ByteFunction<u.OptionalByte, E> mapper) static <K> u.OptionalByte
Returns an emptyOptionalByte
if the specifiedmap
is empty, or no value found by the specifiedkey
, or the value isnull
.<E extends Exception>
u.OptionalByteu.OptionalByte.ifPresent
(Throwables.ByteConsumer<E> action) <E extends Exception,
E2 extends Exception>
u.OptionalByteu.OptionalByte.ifPresentOrElse
(Throwables.ByteConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.ByteList.kthLargest
(int k) ByteList.kthLargest
(int fromIndex, int toIndex, int k) ByteIterator.last()
ByteList.last()
<E extends Exception>
u.OptionalByteu.OptionalByte.map
(Throwables.ByteUnaryOperator<E> mapper) <E extends Exception>
u.OptionalByteu.Nullable.mapToByte
(Throwables.ToByteFunction<? super T, E> mapper) Map to byte.<E extends Exception>
u.OptionalByteu.Optional.mapToByte
(Throwables.ToByteFunction<? super T, E> mapper) Map to byte.<E extends Exception>
u.OptionalByteu.Nullable.mapToByteIfNotNull
(Throwables.ToByteFunction<? super T, E> mapper) Map to byte if not null.ByteList.max()
ByteList.max
(int fromIndex, int toIndex) static u.OptionalByte
Iterables.max
(byte... a) ReturnsOptionalByte.empty()
if the specifiedArray/Collection
isnull
or empty.ByteList.median()
ByteList.median
(int fromIndex, int toIndex) ByteList.min()
ByteList.min
(int fromIndex, int toIndex) static u.OptionalByte
Iterables.min
(byte... a) ReturnsOptionalByte.empty()
if the specifiedArray/Collection
isnull
or empty.static u.OptionalByte
u.OptionalByte.of
(byte value) static u.OptionalByte
u.OptionalByte.ofNullable
(Byte val) <E extends Exception>
u.OptionalByteu.OptionalByte.or
(Throwables.Supplier<u.OptionalByte, E> supplier) <E extends Exception>
u.OptionalByteByteList.reduce
(Throwables.ByteBinaryOperator<E> accumulator) This is equivalent to:Methods in com.landawn.abacus.util that return types with arguments of type u.OptionalByteModifier and TypeMethodDescriptionstatic Pair<Byte,
u.OptionalByte> Median.of
(byte... 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<Byte,
u.OptionalByte> Median.of
(byte[] 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.OptionalByteMethod parameters in com.landawn.abacus.util with type arguments of type u.OptionalByteModifier and TypeMethodDescription<E extends Exception>
u.OptionalByteu.OptionalByte.flatMap
(Throwables.ByteFunction<u.OptionalByte, E> mapper) <E extends Exception>
u.OptionalByteu.OptionalByte.or
(Throwables.Supplier<u.OptionalByte, E> supplier) -
Uses of u.OptionalByte in com.landawn.abacus.util.stream
Methods in com.landawn.abacus.util.stream that return u.OptionalByteModifier and TypeMethodDescriptionabstract <E extends Exception>
u.OptionalByteByteStream.findAny
(Throwables.BytePredicate<E> predicate) abstract <E extends Exception>
u.OptionalByteByteStream.findFirst
(Throwables.BytePredicate<E> predicate) abstract <E extends Exception>
u.OptionalByteByteStream.findFirstOrAny
(Throwables.BytePredicate<E> predicateForFirst) Returns the first element matched bypredicateForFirst
if found or the first element if this stream is not empty Otherwise an emptyOptionalByte
will be returned.abstract <E extends Exception>
u.OptionalByteByteStream.findFirstOrLast
(Throwables.BytePredicate<E> predicateForFirst) Returns the first element matched bypredicateForFirst
if found or the last element if this stream is not empty Otherwise an emptyOptionalByte
will be returned.abstract <E extends Exception>
u.OptionalByteByteStream.findLast
(Throwables.BytePredicate<E> predicate) Consider using:stream.reversed().findFirst(predicate)
for better performance if possible.abstract u.OptionalByte
ByteStream.kthLargest
(int k) abstract u.OptionalByte
ByteStream.max()
abstract u.OptionalByte
ByteStream.min()
abstract u.OptionalByte
ByteStream.reduce
(ByteBinaryOperator op) Method parameters in com.landawn.abacus.util.stream with type arguments of type u.OptionalByteModifier and TypeMethodDescriptionabstract ByteStream
ByteStream.mapPartial
(ByteFunction<u.OptionalByte> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamex