You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
181 lines
4.3 KiB
181 lines
4.3 KiB
2 years ago
|
.class final Lcom/google/common/collect/Collections2$PermutationCollection;
|
||
|
.super Ljava/util/AbstractCollection;
|
||
|
.source "Collections2.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/google/common/collect/Collections2;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x1a
|
||
|
name = "PermutationCollection"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Ljava/util/AbstractCollection",
|
||
|
"<",
|
||
|
"Ljava/util/List",
|
||
|
"<TE;>;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final inputList:Lcom/google/common/collect/ImmutableList;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lcom/google/common/collect/ImmutableList",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/google/common/collect/ImmutableList;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/google/common/collect/ImmutableList",
|
||
|
"<TE;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 566
|
||
|
invoke-direct {p0}, Ljava/util/AbstractCollection;-><init>()V
|
||
|
|
||
|
.line 567
|
||
|
iput-object p1, p0, Lcom/google/common/collect/Collections2$PermutationCollection;->inputList:Lcom/google/common/collect/ImmutableList;
|
||
|
|
||
|
.line 568
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public contains(Ljava/lang/Object;)Z
|
||
|
.locals 1
|
||
|
.param p1 # Ljava/lang/Object;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 583
|
||
|
instance-of v0, p1, Ljava/util/List;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 584
|
||
|
check-cast p1, Ljava/util/List;
|
||
|
|
||
|
.line 585
|
||
|
iget-object v0, p0, Lcom/google/common/collect/Collections2$PermutationCollection;->inputList:Lcom/google/common/collect/ImmutableList;
|
||
|
|
||
|
invoke-static {v0, p1}, Lcom/google/common/collect/Collections2;->access$100(Ljava/util/List;Ljava/util/List;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 587
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public isEmpty()Z
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 575
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public iterator()Ljava/util/Iterator;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/Iterator",
|
||
|
"<",
|
||
|
"Ljava/util/List",
|
||
|
"<TE;>;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 579
|
||
|
new-instance v0, Lcom/google/common/collect/Collections2$PermutationIterator;
|
||
|
|
||
|
iget-object v1, p0, Lcom/google/common/collect/Collections2$PermutationCollection;->inputList:Lcom/google/common/collect/ImmutableList;
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/google/common/collect/Collections2$PermutationIterator;-><init>(Ljava/util/List;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public size()I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 571
|
||
|
iget-object v0, p0, Lcom/google/common/collect/Collections2$PermutationCollection;->inputList:Lcom/google/common/collect/ImmutableList;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/google/common/math/IntMath;->factorial(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 591
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "permutations("
|
||
|
|
||
|
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/collect/Collections2$PermutationCollection;->inputList:Lcom/google/common/collect/ImmutableList;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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
|