com.spencerwi.either.Result.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Either.java Show documentation
Show all versions of Either.java Show documentation
A right-biased implementation of "Either a b" for Java, using Java 8 for mapping/folding and type inference.
???? 4 G
6 7 8
9 :
; <
= >
? @ A B InnerClasses Ok Err leftValue Ljava/lang/Exception;
rightValue Ljava/lang/Object; Signature TR; ()V Code LineNumberTable attempt <(Ljava/util/function/Supplier;)Lcom/spencerwi/either/Result;
StackMapTable : \(Ljava/util/function/Supplier;)Lcom/spencerwi/either/Result ; err 4(Ljava/lang/Exception;)Lcom/spencerwi/either/Result; O(Ljava/lang/Exception;)Lcom/spencerwi/either/Result; ok 1(Ljava/lang/Object;)Lcom/spencerwi/either/Result; =(TR;)Lcom/spencerwi/either/Result; getException ()Ljava/lang/Exception; getResult ()Ljava/lang/Object; ()TR; isErr ()Z isOk fold N(Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/lang/Object; w(Ljava/util/function/Function;Ljava/util/function/Function;)TT; map <(Ljava/util/function/Function;)Lcom/spencerwi/either/Result; _(Ljava/util/function/Function;)Lcom/spencerwi/either/Result; (Ljava/lang/Object;
SourceFile Result.java C D ( " # java/lang/Exception com/spencerwi/either/Result$Err E com/spencerwi/either/Result$Ok F com/spencerwi/either/Result java/lang/Object com/spencerwi/either/Result$1 java/util/function/Supplier get 7(Ljava/lang/Exception;Lcom/spencerwi/either/Result$1;)V 4(Ljava/lang/Object;Lcom/spencerwi/either/Result$1;)V!
*? ? J *? L+? ?L+? ?
L "
? Y*? ? ! " # "
? Y*? ? $ % &