.class final Lcom/google/common/base/Absent; .super Lcom/google/common/base/Optional; .source "Absent.java" # annotations .annotation build Lcom/google/common/annotations/GwtCompatible; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lcom/google/common/base/Optional", ";" } .end annotation # static fields .field static final INSTANCE:Lcom/google/common/base/Absent; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/base/Absent", "<", "Ljava/lang/Object;", ">;" } .end annotation .end field .field private static final serialVersionUID:J # direct methods .method static constructor ()V .locals 1 .prologue .line 33 new-instance v0, Lcom/google/common/base/Absent; invoke-direct {v0}, Lcom/google/common/base/Absent;->()V sput-object v0, Lcom/google/common/base/Absent;->INSTANCE:Lcom/google/common/base/Absent; return-void .end method .method private constructor ()V .locals 0 .prologue .line 40 invoke-direct {p0}, Lcom/google/common/base/Optional;->()V return-void .end method .method private readResolve()Ljava/lang/Object; .locals 1 .prologue .line 90 sget-object v0, Lcom/google/common/base/Absent;->INSTANCE:Lcom/google/common/base/Absent; return-object v0 .end method .method static withType()Lcom/google/common/base/Optional; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/base/Optional", ";" } .end annotation .prologue .line 37 sget-object v0, Lcom/google/common/base/Absent;->INSTANCE:Lcom/google/common/base/Absent; return-object v0 .end method # virtual methods .method public asSet()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set", ";" } .end annotation .prologue .line 69 invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set; move-result-object v0 return-object v0 .end method .method public equals(Ljava/lang/Object;)Z .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .prologue .line 78 if-ne p1, p0, :cond_0 const/4 v0, 0x1 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public get()Ljava/lang/Object; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation .prologue .line 47 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "Optional.get() cannot be called on an absent value" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method .method public hashCode()I .locals 1 .prologue .line 82 const v0, 0x598df91c return v0 .end method .method public isPresent()Z .locals 1 .prologue .line 43 const/4 v0, 0x0 return v0 .end method .method public or(Lcom/google/common/base/Optional;)Lcom/google/common/base/Optional; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Optional", "<+TT;>;)", "Lcom/google/common/base/Optional", ";" } .end annotation .prologue .line 56 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/google/common/base/Optional; return-object v0 .end method .method public or(Lcom/google/common/base/Supplier;)Ljava/lang/Object; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Supplier", "<+TT;>;)TT;" } .end annotation .prologue .line 60 invoke-interface {p1}, Lcom/google/common/base/Supplier;->get()Ljava/lang/Object; move-result-object v0 const-string v1, "use Optional.orNull() instead of a Supplier that returns null" invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method public or(Ljava/lang/Object;)Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)TT;" } .end annotation .prologue .line 51 const-string v0, "use Optional.orNull() instead of Optional.or(null)" invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method public orNull()Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation .annotation runtime Ljavax/annotation/Nullable; .end annotation .prologue .line 65 const/4 v0, 0x0 return-object v0 .end method .method public toString()Ljava/lang/String; .locals 1 .prologue .line 86 const-string v0, "Optional.absent()" return-object v0 .end method .method public transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Function", "<-TT;TV;>;)", "Lcom/google/common/base/Optional", ";" } .end annotation .prologue .line 73 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 74 invoke-static {}, Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional; move-result-object v0 return-object v0 .end method