.class Lcom/google/common/base/Predicates$AssignableFromPredicate; .super Ljava/lang/Object; .source "Predicates.java" # interfaces .implements Lcom/google/common/base/Predicate; .implements Ljava/io/Serializable; # annotations .annotation build Lcom/google/common/annotations/GwtIncompatible; value = "Class.isAssignableFrom" .end annotation .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/base/Predicates; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0xa name = "AssignableFromPredicate" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Lcom/google/common/base/Predicate", "<", "Ljava/lang/Class", "<*>;>;", "Ljava/io/Serializable;" } .end annotation # static fields .field private static final serialVersionUID:J # instance fields .field private final clazz:Ljava/lang/Class; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Class", "<*>;" } .end annotation .end field # direct methods .method private constructor (Ljava/lang/Class;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class", "<*>;)V" } .end annotation .prologue .line 479 invoke-direct {p0}, Ljava/lang/Object;->()V .line 480 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/Class; iput-object v0, p0, Lcom/google/common/base/Predicates$AssignableFromPredicate;->clazz:Ljava/lang/Class; .line 481 return-void .end method .method synthetic constructor (Ljava/lang/Class;Lcom/google/common/base/Predicates$1;)V .locals 0 .prologue .line 475 invoke-direct {p0, p1}, Lcom/google/common/base/Predicates$AssignableFromPredicate;->(Ljava/lang/Class;)V return-void .end method # virtual methods .method public apply(Ljava/lang/Class;)Z .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class", "<*>;)Z" } .end annotation .prologue .line 484 iget-object v0, p0, Lcom/google/common/base/Predicates$AssignableFromPredicate;->clazz:Ljava/lang/Class; invoke-virtual {v0, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z move-result v0 return v0 .end method .method public bridge synthetic apply(Ljava/lang/Object;)Z .locals 1 .prologue .line 474 check-cast p1, Ljava/lang/Class; invoke-virtual {p0, p1}, Lcom/google/common/base/Predicates$AssignableFromPredicate;->apply(Ljava/lang/Class;)Z move-result v0 return v0 .end method .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 490 instance-of v1, p1, Lcom/google/common/base/Predicates$AssignableFromPredicate; if-eqz v1, :cond_0 .line 491 check-cast p1, Lcom/google/common/base/Predicates$AssignableFromPredicate; .line 492 iget-object v1, p0, Lcom/google/common/base/Predicates$AssignableFromPredicate;->clazz:Ljava/lang/Class; iget-object v2, p1, Lcom/google/common/base/Predicates$AssignableFromPredicate;->clazz:Ljava/lang/Class; if-ne v1, v2, :cond_0 const/4 v0, 0x1 .line 494 :cond_0 return v0 .end method .method public hashCode()I .locals 1 .prologue .line 487 iget-object v0, p0, Lcom/google/common/base/Predicates$AssignableFromPredicate;->clazz:Ljava/lang/Class; invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I move-result v0 return v0 .end method .method public toString()Ljava/lang/String; .locals 2 .prologue .line 497 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "Predicates.assignableFrom(" 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/Predicates$AssignableFromPredicate;->clazz:Ljava/lang/Class; invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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