Subscription.smali
.class final Lorg/greenrobot/eventbus/Subscription;
.super Ljava/lang/Object;
.source "Subscription.java"
# instance fields
.field volatile active:Z
.field final subscriber:Ljava/lang/Object;
.field final subscriberMethod:Lorg/greenrobot/eventbus/SubscriberMethod;
# direct methods
.method constructor <init>(Ljava/lang/Object;Lorg/greenrobot/eventbus/SubscriberMethod;)V
.registers 3
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 28
iput-object p1, p0, Lorg/greenrobot/eventbus/Subscription;->subscriber:Ljava/lang/Object;
.line 29
iput-object p2, p0, Lorg/greenrobot/eventbus/Subscription;->subscriberMethod:Lorg/greenrobot/eventbus/SubscriberMethod;
const/4 p1, 0x1
.line 30
iput-boolean p1, p0, Lorg/greenrobot/eventbus/Subscription;->active:Z
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.registers 5
.line 35
instance-of v0, p1, Lorg/greenrobot/eventbus/Subscription;
const/4 v1, 0x0
if-eqz v0, :cond_18
.line 36
check-cast p1, Lorg/greenrobot/eventbus/Subscription;
.line 37
iget-object v0, p0, Lorg/greenrobot/eventbus/Subscription;->subscriber:Ljava/lang/Object;
iget-object v2, p1, Lorg/greenrobot/eventbus/Subscription;->subscriber:Ljava/lang/Object;
if-ne v0, v2, :cond_18
iget-object v0, p0, Lorg/greenrobot/eventbus/Subscription;->subscriberMethod:Lorg/greenrobot/eventbus/SubscriberMethod;
iget-object p1, p1, Lorg/greenrobot/eventbus/Subscription;->subscriberMethod:Lorg/greenrobot/eventbus/SubscriberMethod;
.line 38
invoke-virtual {v0, p1}, Lorg/greenrobot/eventbus/SubscriberMethod;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_18
const/4 v1, 0x1
:cond_18
return v1
.end method
.method public hashCode()I
.registers 3
.line 46
iget-object v0, p0, Lorg/greenrobot/eventbus/Subscription;->subscriber:Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
iget-object v1, p0, Lorg/greenrobot/eventbus/Subscription;->subscriberMethod:Lorg/greenrobot/eventbus/SubscriberMethod;
iget-object v1, v1, Lorg/greenrobot/eventbus/SubscriberMethod;->methodString:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v1
add-int/2addr v0, v1
return v0
.end method