tmap/smali_classes3/com/google/common/graph/Traverser$Traversal$1.smali
2022-06-10 21:38:30 +09:00

98 lines
2.4 KiB
Smali

.class Lcom/google/common/graph/Traverser$Traversal$1;
.super Lcom/google/common/graph/Traverser$Traversal;
.source "Traverser.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/common/graph/Traverser$Traversal;->inGraph(Lcom/google/common/graph/SuccessorsFunction;)Lcom/google/common/graph/Traverser$Traversal;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/graph/Traverser$Traversal<",
"TN;>;"
}
.end annotation
# instance fields
.field public final synthetic val$visited:Ljava/util/Set;
# direct methods
.method public constructor <init>(Lcom/google/common/graph/SuccessorsFunction;Ljava/util/Set;)V
.locals 0
.line 1
iput-object p2, p0, Lcom/google/common/graph/Traverser$Traversal$1;->val$visited:Ljava/util/Set;
invoke-direct {p0, p1}, Lcom/google/common/graph/Traverser$Traversal;-><init>(Lcom/google/common/graph/SuccessorsFunction;)V
return-void
.end method
# virtual methods
.method public visitNext(Ljava/util/Deque;)Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Deque<",
"Ljava/util/Iterator<",
"+TN;>;>;)TN;"
}
.end annotation
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.line 1
invoke-interface {p1}, Ljava/util/Deque;->getFirst()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Iterator;
.line 2
:cond_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
.line 3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 4
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 5
iget-object v2, p0, Lcom/google/common/graph/Traverser$Traversal$1;->val$visited:Ljava/util/Set;
invoke-interface {v2, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
return-object v1
.line 6
:cond_1
invoke-interface {p1}, Ljava/util/Deque;->removeFirst()Ljava/lang/Object;
const/4 p1, 0x0
return-object p1
.end method