.class public Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder; .super Ljava/lang/Object; .source "AsyncExecutor.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lorg/greenrobot/eventbus/util/AsyncExecutor; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "Builder" .end annotation # instance fields .field private eventBus:Lorg/greenrobot/eventbus/EventBus; .field private failureEventType:Ljava/lang/Class; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Class<", "*>;" } .end annotation .end field .field private threadPool:Ljava/util/concurrent/Executor; # direct methods .method private constructor ()V .registers 1 .line 40 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method synthetic constructor (Lorg/greenrobot/eventbus/util/AsyncExecutor$1;)V .registers 2 .line 35 invoke-direct {p0}, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->()V return-void .end method # virtual methods .method public build()Lorg/greenrobot/eventbus/util/AsyncExecutor; .registers 2 const/4 v0, 0x0 .line 59 invoke-virtual {p0, v0}, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->buildForScope(Ljava/lang/Object;)Lorg/greenrobot/eventbus/util/AsyncExecutor; move-result-object v0 return-object v0 .end method .method public buildForActivityScope(Landroid/app/Activity;)Lorg/greenrobot/eventbus/util/AsyncExecutor; .registers 2 .line 63 invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object p1 invoke-virtual {p0, p1}, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->buildForScope(Ljava/lang/Object;)Lorg/greenrobot/eventbus/util/AsyncExecutor; move-result-object p1 return-object p1 .end method .method public buildForScope(Ljava/lang/Object;)Lorg/greenrobot/eventbus/util/AsyncExecutor; .registers 9 .line 67 iget-object v0, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->eventBus:Lorg/greenrobot/eventbus/EventBus; if-nez v0, :cond_a .line 68 invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->getDefault()Lorg/greenrobot/eventbus/EventBus; move-result-object v0 iput-object v0, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->eventBus:Lorg/greenrobot/eventbus/EventBus; .line 70 :cond_a iget-object v0, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->threadPool:Ljava/util/concurrent/Executor; if-nez v0, :cond_14 .line 71 invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService; move-result-object v0 iput-object v0, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->threadPool:Ljava/util/concurrent/Executor; .line 73 :cond_14 iget-object v0, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->failureEventType:Ljava/lang/Class; if-nez v0, :cond_1c .line 74 const-class v0, Lorg/greenrobot/eventbus/util/ThrowableFailureEvent; iput-object v0, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->failureEventType:Ljava/lang/Class; .line 76 :cond_1c new-instance v0, Lorg/greenrobot/eventbus/util/AsyncExecutor; iget-object v2, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->threadPool:Ljava/util/concurrent/Executor; iget-object v3, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->eventBus:Lorg/greenrobot/eventbus/EventBus; iget-object v4, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->failureEventType:Ljava/lang/Class; const/4 v6, 0x0 move-object v1, v0 move-object v5, p1 invoke-direct/range {v1 .. v6}, Lorg/greenrobot/eventbus/util/AsyncExecutor;->(Ljava/util/concurrent/Executor;Lorg/greenrobot/eventbus/EventBus;Ljava/lang/Class;Ljava/lang/Object;Lorg/greenrobot/eventbus/util/AsyncExecutor$1;)V return-object v0 .end method .method public eventBus(Lorg/greenrobot/eventbus/EventBus;)Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder; .registers 2 .line 54 iput-object p1, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->eventBus:Lorg/greenrobot/eventbus/EventBus; return-object p0 .end method .method public failureEventType(Ljava/lang/Class;)Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder; .registers 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "*>;)", "Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;" } .end annotation .line 49 iput-object p1, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->failureEventType:Ljava/lang/Class; return-object p0 .end method .method public threadPool(Ljava/util/concurrent/Executor;)Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder; .registers 2 .line 44 iput-object p1, p0, Lorg/greenrobot/eventbus/util/AsyncExecutor$Builder;->threadPool:Ljava/util/concurrent/Executor; return-object p0 .end method