Class ResultUtils

java.lang.Object
io.github.resilience4j.core.ResultUtils

public class ResultUtils
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ResultUtils()  
  • Method Summary

    Modifier and Type Method Description
    static <T extends java.lang.Throwable>
    boolean
    isFailedAndThrown​(io.vavr.control.Either<? extends java.lang.Throwable,​?> callsResult, java.lang.Class<T> expectedClass)  
    static <T extends java.lang.Throwable>
    boolean
    isFailedAndThrown​(io.vavr.control.Either<? extends java.lang.Throwable,​?> callsResult, java.lang.Class<T> expectedClass, java.util.function.Function<T,​java.lang.Boolean> thrownChecker)  
    static <T> boolean isSuccessfulAndReturned​(io.vavr.control.Either<? extends java.lang.Throwable,​?> callsResult, java.lang.Class<T> expectedClass, java.util.function.Function<T,​java.lang.Boolean> returnedChecker)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • isSuccessfulAndReturned

      public static <T> boolean isSuccessfulAndReturned​(io.vavr.control.Either<? extends java.lang.Throwable,​?> callsResult, java.lang.Class<T> expectedClass, java.util.function.Function<T,​java.lang.Boolean> returnedChecker)
    • isFailedAndThrown

      public static <T extends java.lang.Throwable> boolean isFailedAndThrown​(io.vavr.control.Either<? extends java.lang.Throwable,​?> callsResult, java.lang.Class<T> expectedClass)
    • isFailedAndThrown

      public static <T extends java.lang.Throwable> boolean isFailedAndThrown​(io.vavr.control.Either<? extends java.lang.Throwable,​?> callsResult, java.lang.Class<T> expectedClass, java.util.function.Function<T,​java.lang.Boolean> thrownChecker)