Package 

Class ResultKt

  • All Implemented Interfaces:

    
    public final class ResultKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <A extends Any, C extends Any> Result<C> flatMap(Result<A> $self, Function1<A, Result<C>> f) Returns a transformed Result from results of the f if the Result contains a successful data payload.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • flatMap

         final static <A extends Any, C extends Any> Result<C> flatMap(Result<A> $self, Function1<A, Result<C>> f)

        Returns a transformed Result from results of the f if the Result contains a successful data payload. Returns an original Result if the Result contains an error payload.

        Parameters:
        f - A lambda that returns Result of C.