Index
All Classes and Interfaces|All Packages
A
- accept(T) - Method in interface io.blt.util.functional.ThrowingConsumer
-
Performs this operation on the given argument.
- accumulator() - Method in class io.blt.util.stream.SingletonCollectors.SingletonCollector
- apply(T) - Method in interface io.blt.util.functional.ThrowingFunction
-
Applies this function to the given argument.
C
- characteristics() - Method in class io.blt.util.stream.SingletonCollectors.SingletonCollector
- combiner() - Method in class io.blt.util.stream.SingletonCollectors.SingletonCollector
- computeIfAbsent(Map<K, V>, K, ThrowingFunction<? super K, ? extends V, E>) - Static method in class io.blt.util.Ctr
-
For the specified
map
, if there is no value for the specifiedkey
thencompute
will be called and the result entered into the map. - computeIfAbsent(Map<K, V>, K, ThrowingSupplier<? extends V, E>) - Static method in class io.blt.util.Ctr
-
For the specified
map
, if there is no value for the specifiedkey
thencompute
will be called and the result entered into the map. - Ctr - Class in io.blt.util
-
Static utility methods for operating on implementations of
Collection
andMap
i.e., Containers.
E
- En - Class in io.blt.util
-
Static utility methods for operating on
Enum
. - Ex - Class in io.blt.util
-
Static utility methods centred around
Exception
andThrowable
.
F
- finisher() - Method in class io.blt.util.stream.SingletonCollectors.SingletonCollector
G
- get() - Method in interface io.blt.util.functional.ThrowingSupplier
-
Returns a result.
- getOptional() - Method in class io.blt.util.stream.SingletonCollectors.Container
- getValue() - Method in class io.blt.util.stream.SingletonCollectors.Container
I
- io.blt.util - package io.blt.util
- io.blt.util.functional - package io.blt.util.functional
- io.blt.util.stream - package io.blt.util.stream
N
- newInstanceOf(T) - Static method in class io.blt.util.Obj
-
Returns a new instance of the same type as the input object if possible; otherwise, returns empty.
O
- Obj - Class in io.blt.util
-
Static utility methods for operating on
Object
. - of(Class<E>, String) - Static method in class io.blt.util.En
- ofIgnoreCase(Class<E>, String) - Static method in class io.blt.util.En
- orElseGet(T, ThrowingSupplier<T, E>) - Static method in class io.blt.util.Obj
-
Returns
value
if non-null, else invokes and returns the result ofsupplier
. - orElseOnException(ThrowingSupplier<T, E>, T) - Static method in class io.blt.util.Obj
-
Invokes and returns the result of
supplier
if no exception is thrown, else returnsdefaultValue
. - orEmptyOnException(ThrowingSupplier<T, E>) - Static method in class io.blt.util.Obj
-
Invokes and returns the result of
supplier
if no exception is thrown; otherwise, returns empty.
P
- poke(T, ThrowingConsumer<T, E>) - Static method in class io.blt.util.Obj
-
Passes the
instance
to theconsumer
, then returns theinstance
.
R
- run() - Method in interface io.blt.util.functional.ThrowingRunnable
-
Performs this operation.
S
- setValue(T) - Method in class io.blt.util.stream.SingletonCollectors.Container
- SingletonCollectors - Class in io.blt.util.stream
-
Implementations of
Collector
that reduce to exactly one or zero elements. - SingletonCollectors.Container<T> - Class in io.blt.util.stream
- SingletonCollectors.SingletonCollector<T,
R> - Class in io.blt.util.stream - supplier() - Method in class io.blt.util.stream.SingletonCollectors.SingletonCollector
T
- tap(Supplier<T>, ThrowingConsumer<T, E>) - Static method in class io.blt.util.Obj
-
Calls the
supplier
to retrieve an instance which is mutated by theconsumer
then returned. - throwIf(T, Predicate<? super T>, Supplier<? extends E>) - Static method in class io.blt.util.Ex
-
Throws the specified
throwable
if the givenvalue
satisfies the providedpredicate
. - ThrowingConsumer<T,
E> - Interface in io.blt.util.functional -
Represents an operation that accepts a single input argument that may throw.
- ThrowingFunction<T,
R, - Interface in io.blt.util.functionalE> -
Represents a function that may throw and accepts one argument and produces a result.
- ThrowingRunnable<E> - Interface in io.blt.util.functional
-
Represents an operation that may throw.
- ThrowingSupplier<T,
E> - Interface in io.blt.util.functional -
Represents a supplier of results that may throw.
- throwUnless(T, Predicate<? super T>, Supplier<? extends E>) - Static method in class io.blt.util.Ex
-
Throws the specified
throwable
if the givenvalue
does not satisfy the providedpredicate
. - toNullable() - Static method in class io.blt.util.stream.SingletonCollectors
-
Returns a
Collector
that accumulates the only element, if any, into a nullableObject
. - toOptional() - Static method in class io.blt.util.stream.SingletonCollectors
-
Returns a
Collector
that accumulates the only element, if any, into anOptional
. - transformExceptions(ThrowingRunnable<? extends Exception>, Function<? super Exception, E>) - Static method in class io.blt.util.Ex
-
Executes a runnable, transforming any thrown
Exception
using a specified function. - transformExceptions(ThrowingSupplier<R, ? extends Exception>, Function<? super Exception, E>) - Static method in class io.blt.util.Ex
-
Executes a supplier, transforming any thrown
Exception
using a specified function. - transformValues(Map<K, V>, ThrowingFunction<? super V, R, E>) - Static method in class io.blt.util.Ctr
All Classes and Interfaces|All Packages