MapCollections$ValuesCollection.smali
.class final Lcom/cmcm/support/util/MapCollections$ValuesCollection;
.super Ljava/lang/Object;
.source "MapCollections.java"
# interfaces
.implements Ljava/util/Collection;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/cmcm/support/util/MapCollections;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "ValuesCollection"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Collection",
"<TV;>;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/cmcm/support/util/MapCollections;
# direct methods
.method constructor <init>(Lcom/cmcm/support/util/MapCollections;)V
.registers 2
.prologue
.line 358
iput-object p1, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public add(Ljava/lang/Object;)Z
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TV;)Z"
}
.end annotation
.prologue
.line 362
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
.method public addAll(Ljava/util/Collection;)Z
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection",
"<+TV;>;)Z"
}
.end annotation
.prologue
.line 367
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
.method public clear()V
.registers 2
.prologue
.line 372
iget-object v0, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v0}, Lcom/cmcm/support/util/MapCollections;->colClear()V
.line 373
return-void
.end method
.method public contains(Ljava/lang/Object;)Z
.registers 3
.prologue
.line 377
iget-object v0, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v0, p1}, Lcom/cmcm/support/util/MapCollections;->colIndexOfValue(Ljava/lang/Object;)I
move-result v0
if-ltz v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method public containsAll(Ljava/util/Collection;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection",
"<*>;)Z"
}
.end annotation
.prologue
.line 382
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 383
:cond_4
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_16
.line 384
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
invoke-virtual {p0, v1}, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->contains(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_4
.line 385
const/4 v0, 0x0
.line 388
:goto_15
return v0
:cond_16
const/4 v0, 0x1
goto :goto_15
.end method
.method public isEmpty()Z
.registers 2
.prologue
.line 393
iget-object v0, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v0}, Lcom/cmcm/support/util/MapCollections;->colGetSize()I
move-result v0
if-nez v0, :cond_a
const/4 v0, 0x1
:goto_9
return v0
:cond_a
const/4 v0, 0x0
goto :goto_9
.end method
.method public iterator()Ljava/util/Iterator;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator",
"<TV;>;"
}
.end annotation
.prologue
.line 398
new-instance v0, Lcom/cmcm/support/util/MapCollections$ArrayIterator;
iget-object v1, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/cmcm/support/util/MapCollections$ArrayIterator;-><init>(Lcom/cmcm/support/util/MapCollections;I)V
return-object v0
.end method
.method public remove(Ljava/lang/Object;)Z
.registers 4
.prologue
.line 403
iget-object v0, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v0, p1}, Lcom/cmcm/support/util/MapCollections;->colIndexOfValue(Ljava/lang/Object;)I
move-result v0
.line 404
if-ltz v0, :cond_f
.line 405
iget-object v1, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v1, v0}, Lcom/cmcm/support/util/MapCollections;->colRemoveAt(I)V
.line 406
const/4 v0, 0x1
.line 408
:goto_e
return v0
:cond_f
const/4 v0, 0x0
goto :goto_e
.end method
.method public removeAll(Ljava/util/Collection;)Z
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection",
"<*>;)Z"
}
.end annotation
.prologue
const/4 v2, 0x1
const/4 v0, 0x0
.line 413
iget-object v1, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v1}, Lcom/cmcm/support/util/MapCollections;->colGetSize()I
move-result v3
move v1, v0
.line 415
:goto_9
if-ge v0, v3, :cond_25
.line 416
iget-object v4, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v4, v0, v2}, Lcom/cmcm/support/util/MapCollections;->colGetEntry(II)Ljava/lang/Object;
move-result-object v4
.line 417
invoke-interface {p1, v4}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_22
.line 418
iget-object v1, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v1, v0}, Lcom/cmcm/support/util/MapCollections;->colRemoveAt(I)V
.line 419
add-int/lit8 v0, v0, -0x1
.line 420
add-int/lit8 v1, v3, -0x1
move v3, v1
move v1, v2
.line 415
:cond_22
add-int/lit8 v0, v0, 0x1
goto :goto_9
.line 424
:cond_25
return v1
.end method
.method public retainAll(Ljava/util/Collection;)Z
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection",
"<*>;)Z"
}
.end annotation
.prologue
const/4 v2, 0x1
const/4 v0, 0x0
.line 429
iget-object v1, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v1}, Lcom/cmcm/support/util/MapCollections;->colGetSize()I
move-result v3
move v1, v0
.line 431
:goto_9
if-ge v0, v3, :cond_25
.line 432
iget-object v4, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v4, v0, v2}, Lcom/cmcm/support/util/MapCollections;->colGetEntry(II)Ljava/lang/Object;
move-result-object v4
.line 433
invoke-interface {p1, v4}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_22
.line 434
iget-object v1, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v1, v0}, Lcom/cmcm/support/util/MapCollections;->colRemoveAt(I)V
.line 435
add-int/lit8 v0, v0, -0x1
.line 436
add-int/lit8 v1, v3, -0x1
move v3, v1
move v1, v2
.line 431
:cond_22
add-int/lit8 v0, v0, 0x1
goto :goto_9
.line 440
:cond_25
return v1
.end method
.method public size()I
.registers 2
.prologue
.line 445
iget-object v0, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
invoke-virtual {v0}, Lcom/cmcm/support/util/MapCollections;->colGetSize()I
move-result v0
return v0
.end method
.method public toArray()[Ljava/lang/Object;
.registers 3
.prologue
.line 450
iget-object v0, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cmcm/support/util/MapCollections;->toArrayHelper(I)[Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)[TT;"
}
.end annotation
.prologue
.line 455
iget-object v0, p0, Lcom/cmcm/support/util/MapCollections$ValuesCollection;->this$0:Lcom/cmcm/support/util/MapCollections;
const/4 v1, 0x1
invoke-virtual {v0, p1, v1}, Lcom/cmcm/support/util/MapCollections;->toArrayHelper([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v0
return-object v0
.end method