granularity level: instruction

		.class  Lcom/google/firebase/components/CycleDetector$ComponentNode;
.super Ljava/lang/Object;
.source "CycleDetector.java"

.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/CycleDetector;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "ComponentNode"
.end annotation

.field private final component:Lcom/google/firebase/components/Component;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/components/Component<",
"*>;"
}
.end annotation
.end field
.field private final dependencies:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;"
}
.end annotation
.end field
.field private final dependents:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;"
}
.end annotation
.end field


.method constructor <init>(Lcom/google/firebase/components/Component;)V
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/firebase/components/Component<",
	"*>;)V"
	}
	.end annotation

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	new-instance v0, Ljava/util/HashSet;
	invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
	new-instance v0, Ljava/util/HashSet;
	invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
	iput-object p1, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->component:Lcom/google/firebase/components/Component;
	return-void
.end method

.method  addDependency(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
	.locals 1

	iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
	invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
	return-void
.end method

.method  addDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
	.locals 1

	iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
	invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
	return-void
.end method

.method  getComponent()Lcom/google/firebase/components/Component;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()",
	"Lcom/google/firebase/components/Component<",
	"*>;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->component:Lcom/google/firebase/components/Component;
	return-object v0
.end method

.method  getDependencies()Ljava/util/Set;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()",
	"Ljava/util/Set<",
	"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
	">;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
	return-object v0
.end method

.method  isLeaf()Z
	.locals 1

	const/4 v0, 0x0
	return v0
.end method

.method  isRoot()Z
	.locals 1

	iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
	invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
	move-result v0
	return v0
.end method

.method  removeDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
	.locals 1

	iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
	invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
	return-void
.end method