com.spencerwi.either.Result$Err.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 I
,
- . / 0 1
2 3 4
5
6 7 8
6 : ; (Ljava/lang/Exception;)V Code LineNumberTable getException ()Ljava/lang/Exception; getResult ()Ljava/lang/Object; Signature ()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; hashCode ()I equals (Ljava/lang/Object;)Z
StackMapTable < InnerClasses 7(Ljava/lang/Exception;Lcom/spencerwi/either/Result$1;)V 8Lcom/spencerwi/either/Result;
SourceFile Result.java = > ? @ A java/util/NoSuchElementException Tried to getResult from an Err B C D E F G H ! " com/spencerwi/either/Result$Err Err # $ com/spencerwi/either/Result com/spencerwi/either/Result$1 ()V leftValue Ljava/lang/Exception;
rightValue Ljava/lang/Object; (Ljava/lang/String;)V java/util/function/Function apply &(Ljava/lang/Object;)Ljava/lang/Object; err 4(Ljava/lang/Exception;)Lcom/spencerwi/either/Result; java/lang/Object !
3 *? *+? *? ? ! " # $ *? ? ' "
? Y? ? ) ? , ? . # +*? ? ? 2 *? ? ? 7 ! " *? ?
? ; # $ G +? ? +? M*? ,? ? ?? > ? @ B % ( *+? ? ) * + ' &