final class com.google.common.base.Present<T> extends com.google.common.base.Optional<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.base.Present
super_class: com.google.common.base.Optional
{
private final T reference;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TT;
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.google.common.base.Optional.<init>:()V
1: aload 0
aload 1
putfield com.google.common.base.Present.reference:Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/base/Present<TT;>;
0 3 1 reference TT;
Signature: (TT;)V
MethodParameters:
Name Flags
reference
public boolean isPresent();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Present<TT;>;
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Present<TT;>;
Signature: ()TT;
public T or();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "use Optional.orNull() instead of Optional.or(null)"
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/base/Present<TT;>;
0 2 1 defaultValue TT;
Signature: (TT;)TT;
MethodParameters:
Name Flags
defaultValue
public com.google.common.base.Optional<T> or(com.google.common.base.Optional<? extends T>);
descriptor: (Lcom/google/common/base/Optional;)Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/base/Present<TT;>;
0 2 1 secondChoice Lcom/google/common/base/Optional<+TT;>;
Signature: (Lcom/google/common/base/Optional<+TT;>;)Lcom/google/common/base/Optional<TT;>;
MethodParameters:
Name Flags
secondChoice
public T or(com.google.common.base.Supplier<? extends T>);
descriptor: (Lcom/google/common/base/Supplier;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/base/Present<TT;>;
0 2 1 supplier Lcom/google/common/base/Supplier<+TT;>;
Signature: (Lcom/google/common/base/Supplier<+TT;>;)TT;
MethodParameters:
Name Flags
supplier
public T orNull();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Present<TT;>;
Signature: ()TT;
public java.util.Set<T> asSet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Present<TT;>;
Signature: ()Ljava/util/Set<TT;>;
public <V> com.google.common.base.Optional<V> transform(com.google.common.base.Function<? super T, V>);
descriptor: (Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.google.common.base.Present
dup
1: aload 1
aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
invokeinterface com.google.common.base.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
2: ldc "the Function passed to Optional.transform() must not return null."
3: invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
4: invokespecial com.google.common.base.Present.<init>:(Ljava/lang/Object;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/base/Present<TT;>;
0 5 1 function Lcom/google/common/base/Function<-TT;TV;>;
Signature: <V:Ljava/lang/Object;>(Lcom/google/common/base/Function<-TT;TV;>;)Lcom/google/common/base/Optional<TV;>;
MethodParameters:
Name Flags
function
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 1
instanceof com.google.common.base.Present
ifeq 3
1: aload 1
checkcast com.google.common.base.Present
astore 2
start local 2 2: aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
aload 2
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/base/Present<TT;>;
0 4 1 object Ljava/lang/Object;
2 3 2 other Lcom/google/common/base/Present<*>;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
object
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc 1502476572
aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
invokevirtual java.lang.Object.hashCode:()I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Present<TT;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Optional.of("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.google.common.base.Present.reference:Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Present<TT;>;
}
Signature: <T:Ljava/lang/Object;>Lcom/google/common/base/Optional<TT;>;
SourceFile: "Present.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtCompatible()