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
- Ctr - Class in io.blt.util
-
Static utility methods for operating on implementations of
CollectionandMapi.e.
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. - 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. - orOnException(T) - Method in interface io.blt.util.functional.ThrowingSupplier
-
Returns the result of
ThrowingSupplier.get()if no exception is thrown, else returnsvalue.
P
- poke(T, ThrowingConsumer<T, E>) - Static method in class io.blt.util.Obj
-
Passes the
instanceto theconsumer, then returns theinstance.
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.Obj
-
Throws the specified
throwableif the givenvaluesatisfies the providedpredicate. - ThrowingConsumer<T,
E extends Throwable> - Interface in io.blt.util.functional -
Represents an operation that accepts a single input argument that may throw.
- ThrowingFunction<T,
R, E extends Throwable> - Interface in io.blt.util.functional -
Represents a function that may throw and accepts one argument and produces a result.
- ThrowingSupplier<T,
E extends Throwable> - 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.Obj
-
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. - transformValues(Map<K, V>, ThrowingFunction<? super V, R, E>) - Static method in class io.blt.util.Ctr
All Classes and Interfaces|All Packages