Top Constructors Methods
io.github.resilience4j.core

public Class ResultUtils

extends Object
Class Inheritance
Imports
io.github.resilience4j.core.functions.Either, java.util.function.Function

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T extends Throwable> boolean
isFailedAndThrown(Either<? extends Throwable, ?> callsResult, Class<T> expectedClass)

public static <T extends Throwable> boolean
isFailedAndThrown(Either<? extends Throwable, ?> callsResult, Class<T> expectedClass, Function<T, Boolean> thrownChecker)

public static <T> boolean
isSuccessfulAndReturned(Either<? extends Throwable, ?> callsResult, Class<T> expectedClass, Function<T, Boolean> returnedChecker)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ResultUtilsback to summary
private ResultUtils()

Method Detail

isFailedAndThrownback to summary
public static <T extends Throwable> boolean isFailedAndThrown(Either<? extends Throwable, ?> callsResult, Class<T> expectedClass)
isFailedAndThrownback to summary
public static <T extends Throwable> boolean isFailedAndThrown(Either<? extends Throwable, ?> callsResult, Class<T> expectedClass, Function<T, Boolean> thrownChecker)
Annotations
@SuppressWarnings:unchecked
isSuccessfulAndReturnedback to summary
public static <T> boolean isSuccessfulAndReturned(Either<? extends Throwable, ?> callsResult, Class<T> expectedClass, Function<T, Boolean> returnedChecker)
Annotations
@SuppressWarnings:unchecked