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 specifiedkeythencomputewill 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 specifiedkeythencomputewill be called and the result entered into the map. - Ctr - Class in io.blt.util
-
Static utility methods for operating on implementations of
CollectionandMapi.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
ExceptionandThrowable.
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
valueif 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
supplierif no exception is thrown, else returnsdefaultValue. - orEmptyOnException(ThrowingSupplier<T, E>) - Static method in class io.blt.util.Obj
-
Invokes and returns the result of
supplierif no exception is thrown; otherwise, returns empty.
P
- poke(T, ThrowingConsumer<T, E>) - Static method in class io.blt.util.Obj
-
Passes the
instanceto 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
Collectorthat 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
supplierto retrieve an instance which is mutated by theconsumerthen returned. - throwIf(T, Predicate<? super T>, Supplier<? extends E>) - Static method in class io.blt.util.Ex
-
Throws the specified
throwableif the givenvaluesatisfies 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
throwableif the givenvaluedoes not satisfy the providedpredicate. - toNullable() - Static method in class io.blt.util.stream.SingletonCollectors
-
Returns a
Collectorthat accumulates the only element, if any, into a nullableObject. - toOptional() - Static method in class io.blt.util.stream.SingletonCollectors
-
Returns a
Collectorthat 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
Exceptionusing 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
Exceptionusing 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