com.google.common.base.Optional.class Maven / Gradle / Ivy
???? 4 ?
com/google/common/base/Absent withType #()Lcom/google/common/base/Optional; com/google/common/base/Present
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
(Ljava/lang/Object;)V
com/google/common/base/Optional absent
java/util/Optional orElse
fromNullable 5(Ljava/lang/Object;)Lcom/google/common/base/Optional;
" # $
toJavaUtil ()Ljava/util/Optional;
& ' ( orNull ()Ljava/lang/Object;
* + ,
ofNullable ((Ljava/lang/Object;)Ljava/util/Optional;
. / 0 1 java/lang/Object ()V 3 !com/google/common/base/Optional$1
2 5 6 (Ljava/lang/Iterable;)V 8 java/io/Serializable serialVersionUID J
ConstantValue Code LineNumberTable Signature >()Lcom/google/common/base/Optional; of LocalVariableTable reference Ljava/lang/Object; LocalVariableTypeTable TT; MethodParameters A(TT;)Lcom/google/common/base/Optional; nullableReference
StackMapTable "RuntimeVisibleParameterAnnotations Ljavax/annotation/CheckForNull; fromJavaUtil 7(Ljava/util/Optional;)Lcom/google/common/base/Optional; javaUtilOptional Ljava/util/Optional; Ljava/util/Optional; W(Ljava/util/Optional;)Lcom/google/common/base/Optional; RuntimeVisibleAnnotations 7(Lcom/google/common/base/Optional;)Ljava/util/Optional; googleOptional !Lcom/google/common/base/Optional; &Lcom/google/common/base/Optional; W(Lcom/google/common/base/Optional;)Ljava/util/Optional; this ()Ljava/util/Optional; isPresent ()Z get ()TT; or defaultValue (TT;)TT; D(Lcom/google/common/base/Optional;)Lcom/google/common/base/Optional; secondChoice O(Lcom/google/common/base/Optional<+TT;>;)Lcom/google/common/base/Optional; 5(Lcom/google/common/base/Supplier;)Ljava/lang/Object; supplier ,(Lcom/google/common/base/Supplier<+TT;>;)TT; asSet ()Ljava/util/Set; ()Ljava/util/Set; transform D(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional; function h(Lcom/google/common/base/Function<-TT;TV;>;)Lcom/google/common/base/Optional; equals (Ljava/lang/Object;)Z object hashCode ()I toString ()Ljava/lang/String; presentInstances *(Ljava/lang/Iterable;)Ljava/lang/Iterable; optionals Ljava/lang/Iterable; >Ljava/lang/Iterable<+Lcom/google/common/base/Optional<+TT;>;>; o(Ljava/lang/Iterable<+Lcom/google/common/base/Optional<+TT;>;>;)Ljava/lang/Iterable; >Ljava/lang/Object;Ljava/io/Serializable;
SourceFile
Optional.java -Lcom/google/errorprone/annotations/DoNotMock; value +Use Optional.of(value) or Optional.absent() 8Lcom/google/common/base/ElementTypesAreNonnullByDefault; RuntimeInvisibleAnnotations -Lcom/google/common/annotations/GwtCompatible; serializable InnerClasses! . 7 9 : ; <