public final class sun.security.util.Optional<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.util.Optional
super_class: java.lang.Object
{
private static final sun.security.util.Optional<?> EMPTY;
descriptor: Lsun/security/util/Optional;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lsun/security/util/Optional<*>;
private final T value;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TT;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.security.util.Optional
dup
invokespecial sun.security.util.Optional.<init>:()V
putstatic sun.security.util.Optional.EMPTY:Lsun/security/util/Optional;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.security.util.Optional.value:Ljava/lang/Object;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/util/Optional<TT;>;
public static <T> sun.security.util.Optional<T> empty();
descriptor: ()Lsun/security/util/Optional;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: getstatic sun.security.util.Optional.EMPTY:Lsun/security/util/Optional;
astore 0
start local 0 1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 t Lsun/security/util/Optional<TT;>;
Signature: <T:Ljava/lang/Object;>()Lsun/security/util/Optional<TT;>;
private void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
putfield sun.security.util.Optional.value:Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/util/Optional<TT;>;
0 3 1 value TT;
Signature: (TT;)V
MethodParameters:
Name Flags
value
public static <T> sun.security.util.Optional<T> of(T);
descriptor: (Ljava/lang/Object;)Lsun/security/util/Optional;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new sun.security.util.Optional
dup
aload 0
invokespecial sun.security.util.Optional.<init>:(Ljava/lang/Object;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value TT;
Signature: <T:Ljava/lang/Object;>(TT;)Lsun/security/util/Optional<TT;>;
MethodParameters:
Name Flags
value
public static <T> sun.security.util.Optional<T> ofNullable(T);
descriptor: (Ljava/lang/Object;)Lsun/security/util/Optional;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 1
new sun.security.util.Optional
dup
invokespecial sun.security.util.Optional.<init>:()V
goto 2
StackMap locals:
StackMap stack:
1: aload 0
invokestatic sun.security.util.Optional.of:(Ljava/lang/Object;)Lsun/security/util/Optional;
StackMap locals:
StackMap stack: sun.security.util.Optional
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value TT;
Signature: <T:Ljava/lang/Object;>(TT;)Lsun/security/util/Optional<TT;>;
MethodParameters:
Name Flags
value
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
ifnonnull 2
1: new java.util.NoSuchElementException
dup
ldc "No value present"
invokespecial java.util.NoSuchElementException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/util/Optional<TT;>;
Signature: ()TT;
public boolean isPresent();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/util/Optional<TT;>;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
ifnonnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/util/Optional<TT;>;
public <U> sun.security.util.Optional<U> map(sun.security.util.Function<? super T, ? extends U>);
descriptor: (Lsun/security/util/Function;)Lsun/security/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual sun.security.util.Optional.isPresent:()Z
ifne 3
2: invokestatic sun.security.util.Optional.empty:()Lsun/security/util/Optional;
areturn
3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
invokeinterface sun.security.util.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic sun.security.util.Optional.ofNullable:(Ljava/lang/Object;)Lsun/security/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/util/Optional<TT;>;
0 4 1 mapper Lsun/security/util/Function<-TT;+TU;>;
Signature: <U:Ljava/lang/Object;>(Lsun/security/util/Function<-TT;+TU;>;)Lsun/security/util/Optional<TU;>;
MethodParameters:
Name Flags
mapper
public T orElseGet(sun.security.util.Supplier<? extends T>);
descriptor: (Lsun/security/util/Supplier;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
ifnull 1
aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokeinterface sun.security.util.Supplier.get:()Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/util/Optional<TT;>;
0 3 1 other Lsun/security/util/Supplier<+TT;>;
Signature: (Lsun/security/util/Supplier<+TT;>;)TT;
MethodParameters:
Name Flags
other
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof sun.security.util.Optional
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast sun.security.util.Optional
astore 2
start local 2 5: aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
aload 2
getfield sun.security.util.Optional.value:Ljava/lang/Object;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/util/Optional<TT;>;
0 6 1 obj Ljava/lang/Object;
5 6 2 other Lsun/security/util/Optional<*>;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
invokestatic java.util.Objects.hashCode:(Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/util/Optional<TT;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
ifnull 2
1: ldc "Optional[%s]"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield sun.security.util.Optional.value:Ljava/lang/Object;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
ldc "Optional.empty"
3: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/util/Optional<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "Optional.java"