.class Lcom/google/common/base/Suppliers$SupplierComposition; .super Ljava/lang/Object; .source "Suppliers.java" # interfaces .implements Lcom/google/common/base/Supplier; .implements Ljava/io/Serializable; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/base/Suppliers; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0xa name = "SupplierComposition" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Lcom/google/common/base/Supplier", ";", "Ljava/io/Serializable;" } .end annotation # static fields .field private static final serialVersionUID:J # instance fields .field final function:Lcom/google/common/base/Function; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/base/Function", "<-TF;TT;>;" } .end annotation .end field .field final supplier:Lcom/google/common/base/Supplier; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/base/Supplier", ";" } .end annotation .end field # direct methods .method constructor (Lcom/google/common/base/Function;Lcom/google/common/base/Supplier;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Function", "<-TF;TT;>;", "Lcom/google/common/base/Supplier", ";)V" } .end annotation .prologue .line 61 invoke-direct {p0}, Ljava/lang/Object;->()V .line 62 iput-object p1, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->function:Lcom/google/common/base/Function; .line 63 iput-object p2, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->supplier:Lcom/google/common/base/Supplier; .line 64 return-void .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .locals 3 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .prologue const/4 v0, 0x0 .line 71 instance-of v1, p1, Lcom/google/common/base/Suppliers$SupplierComposition; if-eqz v1, :cond_0 .line 72 check-cast p1, Lcom/google/common/base/Suppliers$SupplierComposition; .line 73 iget-object v1, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->function:Lcom/google/common/base/Function; iget-object v2, p1, Lcom/google/common/base/Suppliers$SupplierComposition;->function:Lcom/google/common/base/Function; invoke-interface {v1, v2}, Lcom/google/common/base/Function;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 iget-object v1, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->supplier:Lcom/google/common/base/Supplier; iget-object v2, p1, Lcom/google/common/base/Suppliers$SupplierComposition;->supplier:Lcom/google/common/base/Supplier; invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 const/4 v0, 0x1 .line 75 :cond_0 return v0 .end method .method public get()Ljava/lang/Object; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation .prologue .line 67 iget-object v0, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->function:Lcom/google/common/base/Function; iget-object v1, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->supplier:Lcom/google/common/base/Supplier; invoke-interface {v1}, Lcom/google/common/base/Supplier;->get()Ljava/lang/Object; move-result-object v1 invoke-interface {v0, v1}, Lcom/google/common/base/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method public hashCode()I .locals 3 .prologue .line 79 const/4 v0, 0x2 new-array v0, v0, [Ljava/lang/Object; const/4 v1, 0x0 iget-object v2, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->function:Lcom/google/common/base/Function; aput-object v2, v0, v1 const/4 v1, 0x1 iget-object v2, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->supplier:Lcom/google/common/base/Supplier; aput-object v2, v0, v1 invoke-static {v0}, Lcom/google/common/base/Objects;->hashCode([Ljava/lang/Object;)I move-result v0 return v0 .end method .method public toString()Ljava/lang/String; .locals 2 .prologue .line 83 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "Suppliers.compose(" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->function:Lcom/google/common/base/Function; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lcom/google/common/base/Suppliers$SupplierComposition;->supplier:Lcom/google/common/base/Supplier; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ")" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method