META-INF.modules.java.base.classes.java.util.Optional.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java.base Show documentation
Show all versions of java.base Show documentation
Bytecoder java.base Module
???? : ? java/util/Optional EMPTY Ljava/util/Optional;
java/lang/Object ()V value Ljava/lang/Object;
java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object;
(Ljava/lang/Object;)V java/util/NoSuchElementException No value present
(Ljava/lang/String;)V " # $ % java/util/function/Consumer accept ' ( ) * java/lang/Runnable run
, - . isPresent ()Z 0 1 2 3 4 java/util/function/Predicate test (Ljava/lang/Object;)Z
6 7 8 empty ()Ljava/util/Optional; : ; < = java/util/function/Function apply
? @ A
ofNullable ((Ljava/lang/Object;)Ljava/util/Optional; C D E F G java/util/function/Supplier get ()Ljava/lang/Object; I J K 7 L java/util/stream/Stream ()Ljava/util/stream/Stream; I N O P of -(Ljava/lang/Object;)Ljava/util/stream/Stream; R java/lang/Throwable
T U V equals '(Ljava/lang/Object;Ljava/lang/Object;)Z
X Y Z hashCode (Ljava/lang/Object;)I \ Optional[%s]
^ _ ` a b java/lang/String format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; d Optional.empty Signature Ljava/util/Optional<*>; TT; Code LineNumberTable LocalVariableTable t LocalVariableTypeTable Ljava/util/Optional; 1()Ljava/util/Optional; this (TT;)V 4(TT;)Ljava/util/Optional;
StackMapTable ()TT; isEmpty ifPresent (Ljava/util/function/Consumer;)V action Ljava/util/function/Consumer; #Ljava/util/function/Consumer<-TT;>; &(Ljava/util/function/Consumer<-TT;>;)V ifPresentOrElse 4(Ljava/util/function/Consumer;Ljava/lang/Runnable;)V emptyAction Ljava/lang/Runnable; :(Ljava/util/function/Consumer<-TT;>;Ljava/lang/Runnable;)V filter 4(Ljava/util/function/Predicate;)Ljava/util/Optional; predicate Ljava/util/function/Predicate; $Ljava/util/function/Predicate<-TT;>; ?(Ljava/util/function/Predicate<-TT;>;)Ljava/util/Optional; map 3(Ljava/util/function/Function;)Ljava/util/Optional; mapper Ljava/util/function/Function; 'Ljava/util/function/Function<-TT;+TU;>; X(Ljava/util/function/Function<-TT;+TU;>;)Ljava/util/Optional; flatMap r Ljava/util/Optional; >Ljava/util/function/Function<-TT;+Ljava/util/Optional<+TU;>;>; o(Ljava/util/function/Function<-TT;+Ljava/util/Optional<+TU;>;>;)Ljava/util/Optional; or 3(Ljava/util/function/Supplier;)Ljava/util/Optional; supplier Ljava/util/function/Supplier; :Ljava/util/function/Supplier<+Ljava/util/Optional<+TT;>;>; U(Ljava/util/function/Supplier<+Ljava/util/Optional<+TT;>;>;)Ljava/util/Optional; stream ()Ljava/util/stream/Stream; orElse other (TT;)TT; orElseGet 1(Ljava/util/function/Supplier;)Ljava/lang/Object; #Ljava/util/function/Supplier<+TT;>; ((Ljava/util/function/Supplier<+TT;>;)TT; orElseThrow exceptionSupplier #Ljava/util/function/Supplier<+TX;>;
Exceptions E(Ljava/util/function/Supplier<+TX;>;)TT;^TX; obj ()I toString ()Ljava/lang/String; (Ljava/lang/Object;
SourceFile
Optional.java 1 e f e g 7 8 h F ? K*? i
V W j k l k m e n h b
*? *+?
? i a b c j
o
l
o m
g e p O A h H ? Y*? ? ? i o j l g e q @ A h d *? ? ? ? Y*? ? i }
~ } j l g r
G e q F G h c *?
?
? Y? ?*?
? i ? ? ? j o l o m r e s - . h T
*?
? ? ? i ? j
o l
o m r @ t . h T
*?
? ? ? i ? j
o l
o m r @ u v h s *?
?
+*?
? ! ? i ? ? ? j o w x l o m w y r e z { | h ? *?
? +*?
? ! ? ,? & ? i ? ? ? ? j o w x } ~ l o m w y r e ? ? h ? #+? W*? +? *?+*?
? / ? *? ? 5? i ? ? ? ? j # o # ? ? l # o m # ? ? r B e ? ? ? h ? +? W*? +? ? 5?+*?
? 9 ? >? i ? ? j o ? ? l o m ? ? r e ? ? ? h ? &+? W*? +? ? 5?+*?
? 9 ? M,? ? ? i j ? &