This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,388 @@
.class abstract Lcom/google/common/hash/AbstractByteHasher;
.super Lcom/google/common/hash/AbstractHasher;
.source "AbstractByteHasher.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
# instance fields
.field private final scratch:Ljava/nio/ByteBuffer;
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHasher;-><init>()V
const/16 v0, 0x8
.line 2
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object v0
iput-object v0, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
return-void
.end method
.method private update(I)Lcom/google/common/hash/Hasher;
.locals 2
.line 8
:try_start_0
iget-object v0, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
move-result-object v0
const/4 v1, 0x0
invoke-virtual {p0, v0, v1, p1}, Lcom/google/common/hash/AbstractByteHasher;->update([BII)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 9
iget-object p1, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
invoke-static {p1}, Lcom/google/common/hash/Java8Compatibility;->clear(Ljava/nio/Buffer;)V
return-object p0
:catchall_0
move-exception p1
iget-object v0, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
invoke-static {v0}, Lcom/google/common/hash/Java8Compatibility;->clear(Ljava/nio/Buffer;)V
.line 10
throw p1
.end method
# virtual methods
.method public putByte(B)Lcom/google/common/hash/Hasher;
.locals 0
.line 2
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->update(B)V
return-object p0
.end method
.method public bridge synthetic putByte(B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->putByte(B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.locals 0
.line 8
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->update(Ljava/nio/ByteBuffer;)V
return-object p0
.end method
.method public putBytes([B)Lcom/google/common/hash/Hasher;
.locals 0
.line 4
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 5
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->update([B)V
return-object p0
.end method
.method public putBytes([BII)Lcom/google/common/hash/Hasher;
.locals 2
add-int v0, p2, p3
.line 6
array-length v1, p1
invoke-static {p2, v0, v1}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
.line 7
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/AbstractByteHasher;->update([BII)V
return-object p0
.end method
.method public bridge synthetic putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 2
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->putBytes([B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 3
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/AbstractByteHasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putChar(C)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->putChar(C)Ljava/nio/ByteBuffer;
const/4 p1, 0x2
.line 3
invoke-direct {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->update(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putChar(C)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->putChar(C)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putInt(I)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;
const/4 p1, 0x4
.line 3
invoke-direct {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->update(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putInt(I)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putLong(J)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1, p2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
const/16 p1, 0x8
.line 3
invoke-direct {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->update(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putLong(J)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractByteHasher;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putShort(S)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractByteHasher;->scratch:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->putShort(S)Ljava/nio/ByteBuffer;
const/4 p1, 0x2
.line 3
invoke-direct {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->update(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putShort(S)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractByteHasher;->putShort(S)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract update(B)V
.end method
.method public update(Ljava/nio/ByteBuffer;)V
.locals 3
.line 3
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasArray()Z
move-result v0
if-eqz v0, :cond_0
.line 4
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B
move-result-object v0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I
move-result v1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result v2
add-int/2addr v2, v1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v1
invoke-virtual {p0, v0, v2, v1}, Lcom/google/common/hash/AbstractByteHasher;->update([BII)V
.line 5
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I
move-result v0
invoke-static {p1, v0}, Lcom/google/common/hash/Java8Compatibility;->position(Ljava/nio/Buffer;I)V
goto :goto_1
.line 6
:cond_0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
:goto_0
if-lez v0, :cond_1
.line 7
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
move-result v1
invoke-virtual {p0, v1}, Lcom/google/common/hash/AbstractByteHasher;->update(B)V
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
:goto_1
return-void
.end method
.method public update([B)V
.locals 2
.line 1
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lcom/google/common/hash/AbstractByteHasher;->update([BII)V
return-void
.end method
.method public update([BII)V
.locals 2
move v0, p2
:goto_0
add-int v1, p2, p3
if-ge v0, v1, :cond_0
.line 2
aget-byte v1, p1, v0
invoke-virtual {p0, v1}, Lcom/google/common/hash/AbstractByteHasher;->update(B)V
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,584 @@
.class Lcom/google/common/hash/AbstractCompositeHashFunction$1;
.super Ljava/lang/Object;
.source "AbstractCompositeHashFunction.java"
# interfaces
.implements Lcom/google/common/hash/Hasher;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/common/hash/AbstractCompositeHashFunction;->fromHashers([Lcom/google/common/hash/Hasher;)Lcom/google/common/hash/Hasher;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/common/hash/AbstractCompositeHashFunction;
.field public final synthetic val$hashers:[Lcom/google/common/hash/Hasher;
# direct methods
.method public constructor <init>(Lcom/google/common/hash/AbstractCompositeHashFunction;[Lcom/google/common/hash/Hasher;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->this$0:Lcom/google/common/hash/AbstractCompositeHashFunction;
iput-object p2, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hash()Lcom/google/common/hash/HashCode;
.locals 2
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->this$0:Lcom/google/common/hash/AbstractCompositeHashFunction;
iget-object v1, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractCompositeHashFunction;->makeHash([Lcom/google/common/hash/Hasher;)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public putBoolean(Z)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putBoolean(Z)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putBoolean(Z)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putBoolean(Z)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putByte(B)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putByte(B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putByte(B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.locals 5
.line 8
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result v0
.line 9
iget-object v1, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_0
aget-object v4, v1, v3
.line 10
invoke-static {p1, v0}, Lcom/google/common/hash/Java8Compatibility;->position(Ljava/nio/Buffer;I)V
.line 11
invoke-interface {v4, p1}, Lcom/google/common/hash/Hasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public putBytes([B)Lcom/google/common/hash/Hasher;
.locals 4
.line 4
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 5
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putBytes([B)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public putBytes([BII)Lcom/google/common/hash/Hasher;
.locals 4
.line 6
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 7
invoke-interface {v3, p1, p2, p3}, Lcom/google/common/hash/Hasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 2
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putBytes([B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 3
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putChar(C)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putChar(C)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putChar(C)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putChar(C)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putDouble(D)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1, p2}, Lcom/google/common/hash/Hasher;->putDouble(D)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putDouble(D)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putDouble(D)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putFloat(F)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putFloat(F)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putFloat(F)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putFloat(F)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putInt(I)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putInt(I)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putInt(I)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putLong(J)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1, p2}, Lcom/google/common/hash/Hasher;->putLong(J)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putLong(J)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/Hasher;
.locals 4
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;)",
"Lcom/google/common/hash/Hasher;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 2
invoke-interface {v3, p1, p2}, Lcom/google/common/hash/Hasher;->putObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public putShort(S)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putShort(S)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putShort(S)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putShort(S)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1, p2}, Lcom/google/common/hash/Hasher;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
.locals 4
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->val$hashers:[Lcom/google/common/hash/Hasher;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-interface {v3, p1}, Lcom/google/common/hash/Hasher;->putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;->putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,158 @@
.class abstract Lcom/google/common/hash/AbstractCompositeHashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "AbstractCompositeHashFunction.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field public final functions:[Lcom/google/common/hash/HashFunction;
# direct methods
.method public varargs constructor <init>([Lcom/google/common/hash/HashFunction;)V
.locals 3
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
.line 2
array-length v0, p1
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
aget-object v2, p1, v1
.line 3
invoke-static {v2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 4
:cond_0
iput-object p1, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
return-void
.end method
.method private fromHashers([Lcom/google/common/hash/Hasher;)Lcom/google/common/hash/Hasher;
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/AbstractCompositeHashFunction$1;
invoke-direct {v0, p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction$1;-><init>(Lcom/google/common/hash/AbstractCompositeHashFunction;[Lcom/google/common/hash/Hasher;)V
return-object v0
.end method
# virtual methods
.method public abstract makeHash([Lcom/google/common/hash/Hasher;)Lcom/google/common/hash/HashCode;
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
array-length v0, v0
new-array v1, v0, [Lcom/google/common/hash/Hasher;
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
.line 2
iget-object v3, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
aget-object v3, v3, v2
invoke-interface {v3}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
move-result-object v3
aput-object v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 3
:cond_0
invoke-direct {p0, v1}, Lcom/google/common/hash/AbstractCompositeHashFunction;->fromHashers([Lcom/google/common/hash/Hasher;)Lcom/google/common/hash/Hasher;
move-result-object v0
return-object v0
.end method
.method public newHasher(I)Lcom/google/common/hash/Hasher;
.locals 4
const/4 v0, 0x0
if-ltz p1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
move v1, v0
.line 4
:goto_0
invoke-static {v1}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
.line 5
iget-object v1, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
array-length v1, v1
new-array v2, v1, [Lcom/google/common/hash/Hasher;
:goto_1
if-ge v0, v1, :cond_1
.line 6
iget-object v3, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
aget-object v3, v3, v0
invoke-interface {v3, p1}, Lcom/google/common/hash/HashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v3
aput-object v3, v2, v0
add-int/lit8 v0, v0, 0x1
goto :goto_1
.line 7
:cond_1
invoke-direct {p0, v2}, Lcom/google/common/hash/AbstractCompositeHashFunction;->fromHashers([Lcom/google/common/hash/Hasher;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,237 @@
.class abstract Lcom/google/common/hash/AbstractHashFunction;
.super Ljava/lang/Object;
.source "AbstractHashFunction.java"
# interfaces
.implements Lcom/google/common/hash/HashFunction;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hashBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/HashCode;
.locals 1
.line 4
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractHashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1}, Lcom/google/common/hash/Hasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashBytes([B)Lcom/google/common/hash/HashCode;
.locals 2
.line 1
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lcom/google/common/hash/AbstractHashFunction;->hashBytes([BII)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashBytes([BII)Lcom/google/common/hash/HashCode;
.locals 2
add-int v0, p2, p3
.line 2
array-length v1, p1
invoke-static {p2, v0, v1}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
.line 3
invoke-virtual {p0, p3}, Lcom/google/common/hash/AbstractHashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1, p2, p3}, Lcom/google/common/hash/Hasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashInt(I)Lcom/google/common/hash/HashCode;
.locals 1
const/4 v0, 0x4
.line 1
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractHashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1}, Lcom/google/common/hash/Hasher;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashLong(J)Lcom/google/common/hash/HashCode;
.locals 1
const/16 v0, 0x8
.line 1
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractHashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1, p2}, Lcom/google/common/hash/Hasher;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/HashCode;
.locals 1
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;)",
"Lcom/google/common/hash/HashCode;"
}
.end annotation
.line 1
invoke-interface {p0}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1, p2}, Lcom/google/common/hash/Hasher;->putObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/HashCode;
.locals 1
.line 1
invoke-interface {p0}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1, p2}, Lcom/google/common/hash/Hasher;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/HashCode;
.locals 1
.line 1
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v0
mul-int/lit8 v0, v0, 0x2
.line 2
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractHashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1}, Lcom/google/common/hash/Hasher;->putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public newHasher(I)Lcom/google/common/hash/Hasher;
.locals 2
if-ltz p1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v1, "expectedInputSize must be >= 0 but was %s"
.line 1
invoke-static {v0, v1, p1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
.line 2
invoke-interface {p0}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,475 @@
.class abstract Lcom/google/common/hash/AbstractHasher;
.super Ljava/lang/Object;
.source "AbstractHasher.java"
# interfaces
.implements Lcom/google/common/hash/Hasher;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final putBoolean(Z)Lcom/google/common/hash/Hasher;
.locals 0
.line 2
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBoolean(Z)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putBoolean(Z)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.locals 3
.line 7
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasArray()Z
move-result v0
if-eqz v0, :cond_0
.line 8
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B
move-result-object v0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I
move-result v1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result v2
add-int/2addr v2, v1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v1
invoke-virtual {p0, v0, v2, v1}, Lcom/google/common/hash/AbstractHasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
.line 9
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I
move-result v0
invoke-static {p1, v0}, Lcom/google/common/hash/Java8Compatibility;->position(Ljava/nio/Buffer;I)V
goto :goto_1
.line 10
:cond_0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
:goto_0
if-lez v0, :cond_1
.line 11
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
move-result v1
invoke-interface {p0, v1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_1
:goto_1
return-object p0
.end method
.method public putBytes([B)Lcom/google/common/hash/Hasher;
.locals 2
.line 4
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lcom/google/common/hash/AbstractHasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putBytes([BII)Lcom/google/common/hash/Hasher;
.locals 2
add-int v0, p2, p3
.line 5
array-length v1, p1
invoke-static {p2, v0, v1}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
const/4 v0, 0x0
:goto_0
if-ge v0, p3, :cond_0
add-int v1, p2, v0
.line 6
aget-byte v1, p1, v1
invoke-interface {p0, v1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 2
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putBytes([B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 3
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/AbstractHasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putChar(C)Lcom/google/common/hash/Hasher;
.locals 1
int-to-byte v0, p1
.line 2
invoke-interface {p0, v0}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
ushr-int/lit8 p1, p1, 0x8
int-to-byte p1, p1
.line 3
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
return-object p0
.end method
.method public bridge synthetic putChar(C)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putChar(C)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public final putDouble(D)Lcom/google/common/hash/Hasher;
.locals 0
.line 2
invoke-static {p1, p2}, Ljava/lang/Double;->doubleToRawLongBits(D)J
move-result-wide p1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractHasher;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putDouble(D)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractHasher;->putDouble(D)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public final putFloat(F)Lcom/google/common/hash/Hasher;
.locals 0
.line 2
invoke-static {p1}, Ljava/lang/Float;->floatToRawIntBits(F)I
move-result p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putFloat(F)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putFloat(F)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putInt(I)Lcom/google/common/hash/Hasher;
.locals 1
int-to-byte v0, p1
.line 2
invoke-interface {p0, v0}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
ushr-int/lit8 v0, p1, 0x8
int-to-byte v0, v0
.line 3
invoke-interface {p0, v0}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
ushr-int/lit8 v0, p1, 0x10
int-to-byte v0, v0
.line 4
invoke-interface {p0, v0}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
ushr-int/lit8 p1, p1, 0x18
int-to-byte p1, p1
.line 5
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
return-object p0
.end method
.method public bridge synthetic putInt(I)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putLong(J)Lcom/google/common/hash/Hasher;
.locals 3
const/4 v0, 0x0
:goto_0
const/16 v1, 0x40
if-ge v0, v1, :cond_0
ushr-long v1, p1, v0
long-to-int v1, v1
int-to-byte v1, v1
.line 2
invoke-interface {p0, v1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
add-int/lit8 v0, v0, 0x8
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putLong(J)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractHasher;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/Hasher;
.locals 0
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;)",
"Lcom/google/common/hash/Hasher;"
}
.end annotation
.line 1
invoke-interface {p2, p1, p0}, Lcom/google/common/hash/Funnel;->funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
return-object p0
.end method
.method public putShort(S)Lcom/google/common/hash/Hasher;
.locals 1
int-to-byte v0, p1
.line 2
invoke-interface {p0, v0}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
ushr-int/lit8 p1, p1, 0x8
int-to-byte p1, p1
.line 3
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
return-object p0
.end method
.method public bridge synthetic putShort(S)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putShort(S)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
.locals 0
.line 2
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putBytes([B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractHasher;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
.locals 3
.line 2
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
.line 3
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v2
invoke-virtual {p0, v2}, Lcom/google/common/hash/AbstractHasher;->putChar(C)Lcom/google/common/hash/Hasher;
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object p0
.end method
.method public bridge synthetic putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,135 @@
.class final Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;
.super Lcom/google/common/hash/AbstractHasher;
.source "AbstractNonStreamingHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/AbstractNonStreamingHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "BufferingHasher"
.end annotation
# instance fields
.field public final stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
.field public final synthetic this$0:Lcom/google/common/hash/AbstractNonStreamingHashFunction;
# direct methods
.method public constructor <init>(Lcom/google/common/hash/AbstractNonStreamingHashFunction;I)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->this$0:Lcom/google/common/hash/AbstractNonStreamingHashFunction;
invoke-direct {p0}, Lcom/google/common/hash/AbstractHasher;-><init>()V
.line 2
new-instance p1, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
invoke-direct {p1, p2}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;-><init>(I)V
iput-object p1, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
return-void
.end method
# virtual methods
.method public hash()Lcom/google/common/hash/HashCode;
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->this$0:Lcom/google/common/hash/AbstractNonStreamingHashFunction;
iget-object v1, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
invoke-virtual {v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->byteArray()[B
move-result-object v1
iget-object v2, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
invoke-virtual {v2}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->length()I
move-result v2
const/4 v3, 0x0
invoke-virtual {v0, v1, v3, v2}, Lcom/google/common/hash/AbstractNonStreamingHashFunction;->hashBytes([BII)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public putByte(B)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
invoke-virtual {v0, p1}, Ljava/io/ByteArrayOutputStream;->write(I)V
return-object p0
.end method
.method public bridge synthetic putByte(B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putByte(B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.locals 1
.line 4
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
invoke-virtual {v0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(Ljava/nio/ByteBuffer;)V
return-object p0
.end method
.method public putBytes([BII)Lcom/google/common/hash/Hasher;
.locals 1
.line 3
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
invoke-virtual {v0, p1, p2, p3}, Ljava/io/ByteArrayOutputStream;->write([BII)V
return-object p0
.end method
.method public bridge synthetic putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 2
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,91 @@
.class final Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;
.super Ljava/io/ByteArrayOutputStream;
.source "AbstractNonStreamingHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/AbstractNonStreamingHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "ExposedByteArrayOutputStream"
.end annotation
# direct methods
.method public constructor <init>(I)V
.locals 0
.line 1
invoke-direct {p0, p1}, Ljava/io/ByteArrayOutputStream;-><init>(I)V
return-void
.end method
# virtual methods
.method public byteArray()[B
.locals 1
.line 1
iget-object v0, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
return-object v0
.end method
.method public length()I
.locals 1
.line 1
iget v0, p0, Ljava/io/ByteArrayOutputStream;->count:I
return v0
.end method
.method public write(Ljava/nio/ByteBuffer;)V
.locals 5
.line 1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
.line 2
iget v1, p0, Ljava/io/ByteArrayOutputStream;->count:I
add-int v2, v1, v0
iget-object v3, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
array-length v4, v3
if-le v2, v4, :cond_0
add-int/2addr v1, v0
.line 3
invoke-static {v3, v1}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object v1
iput-object v1, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
.line 4
:cond_0
iget-object v1, p0, Ljava/io/ByteArrayOutputStream;->buf:[B
iget v2, p0, Ljava/io/ByteArrayOutputStream;->count:I
invoke-virtual {p1, v1, v2, v0}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
.line 5
iget p1, p0, Ljava/io/ByteArrayOutputStream;->count:I
add-int/2addr p1, v0
iput p1, p0, Ljava/io/ByteArrayOutputStream;->count:I
return-void
.end method
@@ -0,0 +1,225 @@
.class abstract Lcom/google/common/hash/AbstractNonStreamingHashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "AbstractNonStreamingHashFunction.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;,
Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
return-void
.end method
# virtual methods
.method public hashBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/HashCode;
.locals 1
.line 1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractNonStreamingHashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v0
invoke-interface {v0, p1}, Lcom/google/common/hash/Hasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-interface {p1}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public abstract hashBytes([BII)Lcom/google/common/hash/HashCode;
.end method
.method public hashInt(I)Lcom/google/common/hash/HashCode;
.locals 2
const/4 v0, 0x4
.line 1
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;
move-result-object p1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHashFunction;->hashBytes([B)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashLong(J)Lcom/google/common/hash/HashCode;
.locals 2
const/16 v0, 0x8
.line 1
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object v0
invoke-virtual {v0, p1, p2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
move-result-object p1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHashFunction;->hashBytes([B)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/HashCode;
.locals 0
.line 1
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHashFunction;->hashBytes([B)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/HashCode;
.locals 4
.line 1
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v0
mul-int/lit8 v1, v0, 0x2
.line 2
invoke-static {v1}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v1
sget-object v2, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {v1, v2}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object v1
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
.line 3
invoke-interface {p1, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v3
invoke-virtual {v1, v3}, Ljava/nio/ByteBuffer;->putChar(C)Ljava/nio/ByteBuffer;
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 4
:cond_0
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->array()[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHashFunction;->hashBytes([B)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 1
const/16 v0, 0x20
.line 1
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractNonStreamingHashFunction;->newHasher(I)Lcom/google/common/hash/Hasher;
move-result-object v0
return-object v0
.end method
.method public newHasher(I)Lcom/google/common/hash/Hasher;
.locals 1
if-ltz p1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
.line 2
:goto_0
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
.line 3
new-instance v0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;
invoke-direct {v0, p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;-><init>(Lcom/google/common/hash/AbstractNonStreamingHashFunction;I)V
return-object v0
.end method
@@ -0,0 +1,517 @@
.class abstract Lcom/google/common/hash/AbstractStreamingHasher;
.super Lcom/google/common/hash/AbstractHasher;
.source "AbstractStreamingHasher.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
# instance fields
.field private final buffer:Ljava/nio/ByteBuffer;
.field private final bufferSize:I
.field private final chunkSize:I
# direct methods
.method public constructor <init>(I)V
.locals 0
.line 1
invoke-direct {p0, p1, p1}, Lcom/google/common/hash/AbstractStreamingHasher;-><init>(II)V
return-void
.end method
.method public constructor <init>(II)V
.locals 2
.line 2
invoke-direct {p0}, Lcom/google/common/hash/AbstractHasher;-><init>()V
.line 3
rem-int v0, p2, p1
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V
add-int/lit8 v0, p2, 0x7
.line 4
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object v0
iput-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
.line 5
iput p2, p0, Lcom/google/common/hash/AbstractStreamingHasher;->bufferSize:I
.line 6
iput p1, p0, Lcom/google/common/hash/AbstractStreamingHasher;->chunkSize:I
return-void
.end method
.method private munch()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-static {v0}, Lcom/google/common/hash/Java8Compatibility;->flip(Ljava/nio/Buffer;)V
.line 2
:goto_0
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
iget v1, p0, Lcom/google/common/hash/AbstractStreamingHasher;->chunkSize:I
if-lt v0, v1, :cond_0
.line 3
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractStreamingHasher;->process(Ljava/nio/ByteBuffer;)V
goto :goto_0
.line 4
:cond_0
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->compact()Ljava/nio/ByteBuffer;
return-void
.end method
.method private munchIfFull()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
const/16 v1, 0x8
if-ge v0, v1, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munch()V
:cond_0
return-void
.end method
.method private putBytesInternal(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.locals 4
.line 1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
iget-object v1, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v1
if-gt v0, v1, :cond_0
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
.line 3
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munchIfFull()V
return-object p0
.line 4
:cond_0
iget v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->bufferSize:I
iget-object v1, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->position()I
move-result v1
sub-int/2addr v0, v1
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
.line 5
iget-object v2, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
move-result v3
invoke-virtual {v2, v3}, Ljava/nio/ByteBuffer;->put(B)Ljava/nio/ByteBuffer;
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 6
:cond_1
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munch()V
.line 7
:goto_1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
iget v1, p0, Lcom/google/common/hash/AbstractStreamingHasher;->chunkSize:I
if-lt v0, v1, :cond_2
.line 8
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->process(Ljava/nio/ByteBuffer;)V
goto :goto_1
.line 9
:cond_2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
return-object p0
.end method
# virtual methods
.method public final hash()Lcom/google/common/hash/HashCode;
.locals 2
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munch()V
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-static {v0}, Lcom/google/common/hash/Java8Compatibility;->flip(Ljava/nio/Buffer;)V
.line 3
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
if-lez v0, :cond_0
.line 4
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {p0, v0}, Lcom/google/common/hash/AbstractStreamingHasher;->processRemaining(Ljava/nio/ByteBuffer;)V
.line 5
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->limit()I
move-result v1
invoke-static {v0, v1}, Lcom/google/common/hash/Java8Compatibility;->position(Ljava/nio/Buffer;I)V
.line 6
:cond_0
invoke-virtual {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->makeHash()Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public abstract makeHash()Lcom/google/common/hash/HashCode;
.end method
.method public abstract process(Ljava/nio/ByteBuffer;)V
.end method
.method public processRemaining(Ljava/nio/ByteBuffer;)V
.locals 2
.line 1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I
move-result v0
invoke-static {p1, v0}, Lcom/google/common/hash/Java8Compatibility;->position(Ljava/nio/Buffer;I)V
.line 2
iget v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->chunkSize:I
add-int/lit8 v0, v0, 0x7
invoke-static {p1, v0}, Lcom/google/common/hash/Java8Compatibility;->limit(Ljava/nio/Buffer;I)V
.line 3
:goto_0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result v0
iget v1, p0, Lcom/google/common/hash/AbstractStreamingHasher;->chunkSize:I
if-ge v0, v1, :cond_0
const-wide/16 v0, 0x0
.line 4
invoke-virtual {p1, v0, v1}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
goto :goto_0
.line 5
:cond_0
invoke-static {p1, v1}, Lcom/google/common/hash/Java8Compatibility;->limit(Ljava/nio/Buffer;I)V
.line 6
invoke-static {p1}, Lcom/google/common/hash/Java8Compatibility;->flip(Ljava/nio/Buffer;)V
.line 7
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->process(Ljava/nio/ByteBuffer;)V
return-void
.end method
.method public final putByte(B)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->put(B)Ljava/nio/ByteBuffer;
.line 3
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munchIfFull()V
return-object p0
.end method
.method public bridge synthetic putByte(B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->putByte(B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public final putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.locals 2
.line 4
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->order()Ljava/nio/ByteOrder;
move-result-object v0
.line 5
:try_start_0
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
.line 6
invoke-direct {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->putBytesInternal(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 7
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
return-object v1
:catchall_0
move-exception v1
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
.line 8
throw v1
.end method
.method public final putBytes([BII)Lcom/google/common/hash/Hasher;
.locals 0
.line 3
invoke-static {p1, p2, p3}, Ljava/nio/ByteBuffer;->wrap([BII)Ljava/nio/ByteBuffer;
move-result-object p1
sget-object p2, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {p1, p2}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object p1
invoke-direct {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->putBytesInternal(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 2
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/AbstractStreamingHasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public final putChar(C)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->putChar(C)Ljava/nio/ByteBuffer;
.line 3
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munchIfFull()V
return-object p0
.end method
.method public bridge synthetic putChar(C)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->putChar(C)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public final putInt(I)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;
.line 3
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munchIfFull()V
return-object p0
.end method
.method public bridge synthetic putInt(I)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public final putLong(J)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1, p2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
.line 3
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munchIfFull()V
return-object p0
.end method
.method public bridge synthetic putLong(J)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractStreamingHasher;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public final putShort(S)Lcom/google/common/hash/Hasher;
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/AbstractStreamingHasher;->buffer:Ljava/nio/ByteBuffer;
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->putShort(S)Ljava/nio/ByteBuffer;
.line 3
invoke-direct {p0}, Lcom/google/common/hash/AbstractStreamingHasher;->munchIfFull()V
return-object p0
.end method
.method public bridge synthetic putShort(S)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractStreamingHasher;->putShort(S)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/common/hash/BloomFilter$1;
.super Ljava/lang/Object;
.source "BloomFilter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/BloomFilter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,129 @@
.class Lcom/google/common/hash/BloomFilter$SerialForm;
.super Ljava/lang/Object;
.source "BloomFilter.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/BloomFilter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SerialForm"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/io/Serializable;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x1L
# instance fields
.field public final data:[J
.field public final funnel:Lcom/google/common/hash/Funnel;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/hash/Funnel<",
"-TT;>;"
}
.end annotation
.end field
.field public final numHashFunctions:I
.field public final strategy:Lcom/google/common/hash/BloomFilter$Strategy;
# direct methods
.method public constructor <init>(Lcom/google/common/hash/BloomFilter;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/hash/BloomFilter<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/hash/BloomFilter;->access$000(Lcom/google/common/hash/BloomFilter;)Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
move-result-object v0
iget-object v0, v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-static {v0}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->toPlainArray(Ljava/util/concurrent/atomic/AtomicLongArray;)[J
move-result-object v0
iput-object v0, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->data:[J
.line 3
invoke-static {p1}, Lcom/google/common/hash/BloomFilter;->access$100(Lcom/google/common/hash/BloomFilter;)I
move-result v0
iput v0, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->numHashFunctions:I
.line 4
invoke-static {p1}, Lcom/google/common/hash/BloomFilter;->access$200(Lcom/google/common/hash/BloomFilter;)Lcom/google/common/hash/Funnel;
move-result-object v0
iput-object v0, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->funnel:Lcom/google/common/hash/Funnel;
.line 5
invoke-static {p1}, Lcom/google/common/hash/BloomFilter;->access$300(Lcom/google/common/hash/BloomFilter;)Lcom/google/common/hash/BloomFilter$Strategy;
move-result-object p1
iput-object p1, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->strategy:Lcom/google/common/hash/BloomFilter$Strategy;
return-void
.end method
# virtual methods
.method public readResolve()Ljava/lang/Object;
.locals 7
.line 1
new-instance v6, Lcom/google/common/hash/BloomFilter;
new-instance v1, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
iget-object v0, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->data:[J
invoke-direct {v1, v0}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;-><init>([J)V
iget v2, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->numHashFunctions:I
iget-object v3, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->funnel:Lcom/google/common/hash/Funnel;
iget-object v4, p0, Lcom/google/common/hash/BloomFilter$SerialForm;->strategy:Lcom/google/common/hash/BloomFilter$Strategy;
const/4 v5, 0x0
move-object v0, v6
invoke-direct/range {v0 .. v5}, Lcom/google/common/hash/BloomFilter;-><init>(Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;ILcom/google/common/hash/Funnel;Lcom/google/common/hash/BloomFilter$Strategy;Lcom/google/common/hash/BloomFilter$1;)V
return-object v6
.end method
@@ -0,0 +1,58 @@
.class interface abstract Lcom/google/common/hash/BloomFilter$Strategy;
.super Ljava/lang/Object;
.source "BloomFilter.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/BloomFilter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Strategy"
.end annotation
# virtual methods
.method public abstract mightContain(Ljava/lang/Object;Lcom/google/common/hash/Funnel;ILcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;)Z
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;I",
"Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;",
")Z"
}
.end annotation
.end method
.method public abstract ordinal()I
.end method
.method public abstract put(Ljava/lang/Object;Lcom/google/common/hash/Funnel;ILcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;)Z
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;I",
"Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;",
")Z"
}
.end annotation
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,192 @@
.class final enum Lcom/google/common/hash/BloomFilterStrategies$1;
.super Lcom/google/common/hash/BloomFilterStrategies;
.source "BloomFilterStrategies.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/BloomFilterStrategies;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, v0}, Lcom/google/common/hash/BloomFilterStrategies;-><init>(Ljava/lang/String;ILcom/google/common/hash/BloomFilterStrategies$1;)V
return-void
.end method
# virtual methods
.method public mightContain(Ljava/lang/Object;Lcom/google/common/hash/Funnel;ILcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;)Z
.locals 6
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;I",
"Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;",
")Z"
}
.end annotation
.line 1
invoke-virtual {p4}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitSize()J
move-result-wide v0
.line 2
invoke-static {}, Lcom/google/common/hash/Hashing;->murmur3_128()Lcom/google/common/hash/HashFunction;
move-result-object v2
invoke-interface {v2, p1, p2}, Lcom/google/common/hash/HashFunction;->hashObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/HashCode;
move-result-object p1
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->asLong()J
move-result-wide p1
long-to-int v2, p1
const/16 v3, 0x20
ushr-long/2addr p1, v3
long-to-int p1, p1
const/4 p2, 0x1
move v3, p2
:goto_0
if-gt v3, p3, :cond_2
mul-int v4, v3, p1
add-int/2addr v4, v2
if-gez v4, :cond_0
not-int v4, v4
:cond_0
int-to-long v4, v4
.line 3
rem-long/2addr v4, v0
invoke-virtual {p4, v4, v5}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->get(J)Z
move-result v4
if-nez v4, :cond_1
const/4 p1, 0x0
return p1
:cond_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
return p2
.end method
.method public put(Ljava/lang/Object;Lcom/google/common/hash/Funnel;ILcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;)Z
.locals 6
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;I",
"Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;",
")Z"
}
.end annotation
.line 1
invoke-virtual {p4}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitSize()J
move-result-wide v0
.line 2
invoke-static {}, Lcom/google/common/hash/Hashing;->murmur3_128()Lcom/google/common/hash/HashFunction;
move-result-object v2
invoke-interface {v2, p1, p2}, Lcom/google/common/hash/HashFunction;->hashObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/HashCode;
move-result-object p1
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->asLong()J
move-result-wide p1
long-to-int v2, p1
const/16 v3, 0x20
ushr-long/2addr p1, v3
long-to-int p1, p1
const/4 p2, 0x1
const/4 v3, 0x0
:goto_0
if-gt p2, p3, :cond_1
mul-int v4, p2, p1
add-int/2addr v4, v2
if-gez v4, :cond_0
not-int v4, v4
:cond_0
int-to-long v4, v4
.line 3
rem-long/2addr v4, v0
invoke-virtual {p4, v4, v5}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->set(J)Z
move-result v4
or-int/2addr v3, v4
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_1
return v3
.end method
@@ -0,0 +1,272 @@
.class final enum Lcom/google/common/hash/BloomFilterStrategies$2;
.super Lcom/google/common/hash/BloomFilterStrategies;
.source "BloomFilterStrategies.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/BloomFilterStrategies;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, v0}, Lcom/google/common/hash/BloomFilterStrategies;-><init>(Ljava/lang/String;ILcom/google/common/hash/BloomFilterStrategies$1;)V
return-void
.end method
.method private lowerEight([B)J
.locals 9
const/4 v0, 0x7
.line 1
aget-byte v1, p1, v0
const/4 v0, 0x6
aget-byte v2, p1, v0
const/4 v0, 0x5
aget-byte v3, p1, v0
const/4 v0, 0x4
aget-byte v4, p1, v0
const/4 v0, 0x3
aget-byte v5, p1, v0
const/4 v0, 0x2
aget-byte v6, p1, v0
const/4 v0, 0x1
aget-byte v7, p1, v0
const/4 v0, 0x0
aget-byte v8, p1, v0
invoke-static/range {v1 .. v8}, Lcom/google/common/primitives/Longs;->fromBytes(BBBBBBBB)J
move-result-wide v0
return-wide v0
.end method
.method private upperEight([B)J
.locals 9
const/16 v0, 0xf
.line 1
aget-byte v1, p1, v0
const/16 v0, 0xe
aget-byte v2, p1, v0
const/16 v0, 0xd
aget-byte v3, p1, v0
const/16 v0, 0xc
aget-byte v4, p1, v0
const/16 v0, 0xb
aget-byte v5, p1, v0
const/16 v0, 0xa
aget-byte v6, p1, v0
const/16 v0, 0x9
aget-byte v7, p1, v0
const/16 v0, 0x8
aget-byte v8, p1, v0
invoke-static/range {v1 .. v8}, Lcom/google/common/primitives/Longs;->fromBytes(BBBBBBBB)J
move-result-wide v0
return-wide v0
.end method
# virtual methods
.method public mightContain(Ljava/lang/Object;Lcom/google/common/hash/Funnel;ILcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;)Z
.locals 8
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;I",
"Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;",
")Z"
}
.end annotation
.line 1
invoke-virtual {p4}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitSize()J
move-result-wide v0
.line 2
invoke-static {}, Lcom/google/common/hash/Hashing;->murmur3_128()Lcom/google/common/hash/HashFunction;
move-result-object v2
invoke-interface {v2, p1, p2}, Lcom/google/common/hash/HashFunction;->hashObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/HashCode;
move-result-object p1
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->getBytesInternal()[B
move-result-object p1
.line 3
invoke-direct {p0, p1}, Lcom/google/common/hash/BloomFilterStrategies$2;->lowerEight([B)J
move-result-wide v2
.line 4
invoke-direct {p0, p1}, Lcom/google/common/hash/BloomFilterStrategies$2;->upperEight([B)J
move-result-wide p1
const/4 v4, 0x0
move v5, v4
:goto_0
if-ge v5, p3, :cond_1
const-wide v6, 0x7fffffffffffffffL
and-long/2addr v6, v2
.line 5
rem-long/2addr v6, v0
invoke-virtual {p4, v6, v7}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->get(J)Z
move-result v6
if-nez v6, :cond_0
return v4
:cond_0
add-long/2addr v2, p1
add-int/lit8 v5, v5, 0x1
goto :goto_0
:cond_1
const/4 p1, 0x1
return p1
.end method
.method public put(Ljava/lang/Object;Lcom/google/common/hash/Funnel;ILcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;)Z
.locals 8
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;I",
"Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;",
")Z"
}
.end annotation
.line 1
invoke-virtual {p4}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitSize()J
move-result-wide v0
.line 2
invoke-static {}, Lcom/google/common/hash/Hashing;->murmur3_128()Lcom/google/common/hash/HashFunction;
move-result-object v2
invoke-interface {v2, p1, p2}, Lcom/google/common/hash/HashFunction;->hashObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/HashCode;
move-result-object p1
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->getBytesInternal()[B
move-result-object p1
.line 3
invoke-direct {p0, p1}, Lcom/google/common/hash/BloomFilterStrategies$2;->lowerEight([B)J
move-result-wide v2
.line 4
invoke-direct {p0, p1}, Lcom/google/common/hash/BloomFilterStrategies$2;->upperEight([B)J
move-result-wide p1
const/4 v4, 0x0
move v5, v4
:goto_0
if-ge v4, p3, :cond_0
const-wide v6, 0x7fffffffffffffffL
and-long/2addr v6, v2
.line 5
rem-long/2addr v6, v0
invoke-virtual {p4, v6, v7}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->set(J)Z
move-result v6
or-int/2addr v5, v6
add-long/2addr v2, p1
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_0
return v5
.end method
@@ -0,0 +1,535 @@
.class final Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
.super Ljava/lang/Object;
.source "BloomFilterStrategies.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/BloomFilterStrategies;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "LockFreeBitArray"
.end annotation
# static fields
.field private static final LONG_ADDRESSABLE_BITS:I = 0x6
# instance fields
.field private final bitCount:Lcom/google/common/hash/LongAddable;
.field public final data:Ljava/util/concurrent/atomic/AtomicLongArray;
# direct methods
.method public constructor <init>(J)V
.locals 4
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v1, "data length is zero!"
.line 2
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 3
new-instance v0, Ljava/util/concurrent/atomic/AtomicLongArray;
const-wide/16 v1, 0x40
sget-object v3, Ljava/math/RoundingMode;->CEILING:Ljava/math/RoundingMode;
.line 4
invoke-static {p1, p2, v1, v2, v3}, Lcom/google/common/math/LongMath;->divide(JJLjava/math/RoundingMode;)J
move-result-wide p1
invoke-static {p1, p2}, Lcom/google/common/primitives/Ints;->checkedCast(J)I
move-result p1
invoke-direct {v0, p1}, Ljava/util/concurrent/atomic/AtomicLongArray;-><init>(I)V
iput-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
.line 5
invoke-static {}, Lcom/google/common/hash/LongAddables;->create()Lcom/google/common/hash/LongAddable;
move-result-object p1
iput-object p1, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitCount:Lcom/google/common/hash/LongAddable;
return-void
.end method
.method public constructor <init>([J)V
.locals 6
.line 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 7
array-length v0, p1
const/4 v1, 0x0
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
move v0, v1
:goto_0
const-string v2, "data length is zero!"
invoke-static {v0, v2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 8
new-instance v0, Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-direct {v0, p1}, Ljava/util/concurrent/atomic/AtomicLongArray;-><init>([J)V
iput-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
.line 9
invoke-static {}, Lcom/google/common/hash/LongAddables;->create()Lcom/google/common/hash/LongAddable;
move-result-object v0
iput-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitCount:Lcom/google/common/hash/LongAddable;
const-wide/16 v2, 0x0
.line 10
array-length v0, p1
:goto_1
if-ge v1, v0, :cond_1
aget-wide v4, p1, v1
.line 11
invoke-static {v4, v5}, Ljava/lang/Long;->bitCount(J)I
move-result v4
int-to-long v4, v4
add-long/2addr v2, v4
add-int/lit8 v1, v1, 0x1
goto :goto_1
.line 12
:cond_1
iget-object p1, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitCount:Lcom/google/common/hash/LongAddable;
invoke-interface {p1, v2, v3}, Lcom/google/common/hash/LongAddable;->add(J)V
return-void
.end method
.method public static toPlainArray(Ljava/util/concurrent/atomic/AtomicLongArray;)[J
.locals 5
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
move-result v0
new-array v1, v0, [J
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
.line 2
invoke-virtual {p0, v2}, Ljava/util/concurrent/atomic/AtomicLongArray;->get(I)J
move-result-wide v3
aput-wide v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v1
.end method
# virtual methods
.method public bitCount()J
.locals 2
.line 1
iget-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitCount:Lcom/google/common/hash/LongAddable;
invoke-interface {v0}, Lcom/google/common/hash/LongAddable;->sum()J
move-result-wide v0
return-wide v0
.end method
.method public bitSize()J
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
move-result v0
int-to-long v0, v0
const-wide/16 v2, 0x40
mul-long/2addr v0, v2
return-wide v0
.end method
.method public copy()Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
.locals 2
.line 1
new-instance v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
iget-object v1, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-static {v1}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->toPlainArray(Ljava/util/concurrent/atomic/AtomicLongArray;)[J
move-result-object v1
invoke-direct {v0, v1}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;-><init>([J)V
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
.line 3
iget-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-static {v0}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->toPlainArray(Ljava/util/concurrent/atomic/AtomicLongArray;)[J
move-result-object v0
iget-object p1, p1, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-static {p1}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->toPlainArray(Ljava/util/concurrent/atomic/AtomicLongArray;)[J
move-result-object p1
invoke-static {v0, p1}, Ljava/util/Arrays;->equals([J[J)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public get(J)Z
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
const/4 v1, 0x6
ushr-long v1, p1, v1
long-to-int v1, v1
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicLongArray;->get(I)J
move-result-wide v0
long-to-int p1, p1
const-wide/16 v2, 0x1
shl-long p1, v2, p1
and-long/2addr p1, v0
const-wide/16 v0, 0x0
cmp-long p1, p1, v0
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public hashCode()I
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-static {v0}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->toPlainArray(Ljava/util/concurrent/atomic/AtomicLongArray;)[J
move-result-object v0
invoke-static {v0}, Ljava/util/Arrays;->hashCode([J)I
move-result v0
return v0
.end method
.method public putAll(Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;)V
.locals 18
move-object/from16 v0, p0
move-object/from16 v1, p1
.line 1
iget-object v2, v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
.line 2
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
move-result v2
iget-object v3, v1, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
move-result v3
const/4 v4, 0x1
const/4 v5, 0x0
if-ne v2, v3, :cond_0
move v2, v4
goto :goto_0
:cond_0
move v2, v5
:goto_0
iget-object v3, v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
.line 3
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
move-result v3
iget-object v6, v1, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
.line 4
invoke-virtual {v6}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
move-result v6
const-string v7, "BitArrays must be of equal length (%s != %s)"
.line 5
invoke-static {v2, v7, v3, v6}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;II)V
move v2, v5
.line 6
:goto_1
iget-object v3, v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
move-result v3
if-ge v2, v3, :cond_4
.line 7
iget-object v3, v1, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-virtual {v3, v2}, Ljava/util/concurrent/atomic/AtomicLongArray;->get(I)J
move-result-wide v6
.line 8
:cond_1
iget-object v3, v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-virtual {v3, v2}, Ljava/util/concurrent/atomic/AtomicLongArray;->get(I)J
move-result-wide v14
or-long v16, v14, v6
cmp-long v3, v14, v16
if-nez v3, :cond_2
move v3, v5
goto :goto_2
.line 9
:cond_2
iget-object v8, v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
move v9, v2
move-wide v10, v14
move-wide/from16 v12, v16
invoke-virtual/range {v8 .. v13}, Ljava/util/concurrent/atomic/AtomicLongArray;->compareAndSet(IJJ)Z
move-result v3
if-eqz v3, :cond_1
move v3, v4
:goto_2
if-eqz v3, :cond_3
.line 10
invoke-static/range {v16 .. v17}, Ljava/lang/Long;->bitCount(J)I
move-result v3
invoke-static {v14, v15}, Ljava/lang/Long;->bitCount(J)I
move-result v6
sub-int/2addr v3, v6
.line 11
iget-object v6, v0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitCount:Lcom/google/common/hash/LongAddable;
int-to-long v7, v3
invoke-interface {v6, v7, v8}, Lcom/google/common/hash/LongAddable;->add(J)V
:cond_3
add-int/lit8 v2, v2, 0x1
goto :goto_1
:cond_4
return-void
.end method
.method public set(J)Z
.locals 10
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->get(J)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
:cond_0
const/4 v0, 0x6
ushr-long v2, p1, v0
long-to-int v0, v2
const-wide/16 v2, 0x1
long-to-int p1, p1
shl-long p1, v2, p1
.line 2
:cond_1
iget-object v2, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
invoke-virtual {v2, v0}, Ljava/util/concurrent/atomic/AtomicLongArray;->get(I)J
move-result-wide v6
or-long v8, v6, p1
cmp-long v2, v6, v8
if-nez v2, :cond_2
return v1
.line 3
:cond_2
iget-object v4, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->data:Ljava/util/concurrent/atomic/AtomicLongArray;
move v5, v0
invoke-virtual/range {v4 .. v9}, Ljava/util/concurrent/atomic/AtomicLongArray;->compareAndSet(IJJ)Z
move-result v2
if-eqz v2, :cond_1
.line 4
iget-object p1, p0, Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;->bitCount:Lcom/google/common/hash/LongAddable;
invoke-interface {p1}, Lcom/google/common/hash/LongAddable;->increment()V
const/4 p1, 0x1
return p1
.end method
@@ -0,0 +1,147 @@
.class abstract enum Lcom/google/common/hash/BloomFilterStrategies;
.super Ljava/lang/Enum;
.source "BloomFilterStrategies.java"
# interfaces
.implements Lcom/google/common/hash/BloomFilter$Strategy;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/BloomFilterStrategies$LockFreeBitArray;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/BloomFilterStrategies;",
">;",
"Lcom/google/common/hash/BloomFilter$Strategy;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/BloomFilterStrategies;
.field public static final enum MURMUR128_MITZ_32:Lcom/google/common/hash/BloomFilterStrategies;
.field public static final enum MURMUR128_MITZ_64:Lcom/google/common/hash/BloomFilterStrategies;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/BloomFilterStrategies;
.locals 3
const/4 v0, 0x2
new-array v0, v0, [Lcom/google/common/hash/BloomFilterStrategies;
.line 1
sget-object v1, Lcom/google/common/hash/BloomFilterStrategies;->MURMUR128_MITZ_32:Lcom/google/common/hash/BloomFilterStrategies;
const/4 v2, 0x0
aput-object v1, v0, v2
sget-object v1, Lcom/google/common/hash/BloomFilterStrategies;->MURMUR128_MITZ_64:Lcom/google/common/hash/BloomFilterStrategies;
const/4 v2, 0x1
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/BloomFilterStrategies$1;
const-string v1, "MURMUR128_MITZ_32"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/BloomFilterStrategies$1;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/BloomFilterStrategies;->MURMUR128_MITZ_32:Lcom/google/common/hash/BloomFilterStrategies;
.line 2
new-instance v0, Lcom/google/common/hash/BloomFilterStrategies$2;
const-string v1, "MURMUR128_MITZ_64"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/BloomFilterStrategies$2;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/BloomFilterStrategies;->MURMUR128_MITZ_64:Lcom/google/common/hash/BloomFilterStrategies;
.line 3
invoke-static {}, Lcom/google/common/hash/BloomFilterStrategies;->$values()[Lcom/google/common/hash/BloomFilterStrategies;
move-result-object v0
sput-object v0, Lcom/google/common/hash/BloomFilterStrategies;->$VALUES:[Lcom/google/common/hash/BloomFilterStrategies;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;ILcom/google/common/hash/BloomFilterStrategies$1;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/BloomFilterStrategies;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/BloomFilterStrategies;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/BloomFilterStrategies;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/BloomFilterStrategies;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/BloomFilterStrategies;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/BloomFilterStrategies;->$VALUES:[Lcom/google/common/hash/BloomFilterStrategies;
invoke-virtual {v0}, [Lcom/google/common/hash/BloomFilterStrategies;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/BloomFilterStrategies;
return-object v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/common/hash/ChecksumHashFunction$1;
.super Ljava/lang/Object;
.source "ChecksumHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/ChecksumHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,114 @@
.class final Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;
.super Lcom/google/common/hash/AbstractByteHasher;
.source "ChecksumHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/ChecksumHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "ChecksumHasher"
.end annotation
# instance fields
.field private final checksum:Ljava/util/zip/Checksum;
.field public final synthetic this$0:Lcom/google/common/hash/ChecksumHashFunction;
# direct methods
.method private constructor <init>(Lcom/google/common/hash/ChecksumHashFunction;Ljava/util/zip/Checksum;)V
.locals 0
.line 2
iput-object p1, p0, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;->this$0:Lcom/google/common/hash/ChecksumHashFunction;
invoke-direct {p0}, Lcom/google/common/hash/AbstractByteHasher;-><init>()V
.line 3
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/zip/Checksum;
iput-object p1, p0, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;->checksum:Ljava/util/zip/Checksum;
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/common/hash/ChecksumHashFunction;Ljava/util/zip/Checksum;Lcom/google/common/hash/ChecksumHashFunction$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;-><init>(Lcom/google/common/hash/ChecksumHashFunction;Ljava/util/zip/Checksum;)V
return-void
.end method
# virtual methods
.method public hash()Lcom/google/common/hash/HashCode;
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;->checksum:Ljava/util/zip/Checksum;
invoke-interface {v0}, Ljava/util/zip/Checksum;->getValue()J
move-result-wide v0
.line 2
iget-object v2, p0, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;->this$0:Lcom/google/common/hash/ChecksumHashFunction;
invoke-static {v2}, Lcom/google/common/hash/ChecksumHashFunction;->access$100(Lcom/google/common/hash/ChecksumHashFunction;)I
move-result v2
const/16 v3, 0x20
if-ne v2, v3, :cond_0
long-to-int v0, v0
.line 3
invoke-static {v0}, Lcom/google/common/hash/HashCode;->fromInt(I)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.line 4
:cond_0
invoke-static {v0, v1}, Lcom/google/common/hash/HashCode;->fromLong(J)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public update(B)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;->checksum:Ljava/util/zip/Checksum;
invoke-interface {v0, p1}, Ljava/util/zip/Checksum;->update(I)V
return-void
.end method
.method public update([BII)V
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;->checksum:Ljava/util/zip/Checksum;
invoke-interface {v0, p1, p2, p3}, Ljava/util/zip/Checksum;->update([BII)V
return-void
.end method
@@ -0,0 +1,159 @@
.class final Lcom/google/common/hash/ChecksumHashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "ChecksumHashFunction.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;
}
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field private final bits:I
.field private final checksumSupplier:Lcom/google/common/hash/ImmutableSupplier;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/hash/ImmutableSupplier<",
"+",
"Ljava/util/zip/Checksum;",
">;"
}
.end annotation
.end field
.field private final toString:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lcom/google/common/hash/ImmutableSupplier;ILjava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/hash/ImmutableSupplier<",
"+",
"Ljava/util/zip/Checksum;",
">;I",
"Ljava/lang/String;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/common/hash/ImmutableSupplier;
iput-object p1, p0, Lcom/google/common/hash/ChecksumHashFunction;->checksumSupplier:Lcom/google/common/hash/ImmutableSupplier;
const/16 p1, 0x20
if-eq p2, p1, :cond_1
const/16 p1, 0x40
if-ne p2, p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p1, 0x1
:goto_1
const-string v0, "bits (%s) must be either 32 or 64"
.line 3
invoke-static {p1, v0, p2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
.line 4
iput p2, p0, Lcom/google/common/hash/ChecksumHashFunction;->bits:I
.line 5
invoke-static {p3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
iput-object p1, p0, Lcom/google/common/hash/ChecksumHashFunction;->toString:Ljava/lang/String;
return-void
.end method
.method public static synthetic access$100(Lcom/google/common/hash/ChecksumHashFunction;)I
.locals 0
.line 1
iget p0, p0, Lcom/google/common/hash/ChecksumHashFunction;->bits:I
return p0
.end method
# virtual methods
.method public bits()I
.locals 1
.line 1
iget v0, p0, Lcom/google/common/hash/ChecksumHashFunction;->bits:I
return v0
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;
iget-object v1, p0, Lcom/google/common/hash/ChecksumHashFunction;->checksumSupplier:Lcom/google/common/hash/ImmutableSupplier;
invoke-interface {v1}, Lcom/google/common/base/Supplier;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/zip/Checksum;
const/4 v2, 0x0
invoke-direct {v0, p0, v1, v2}, Lcom/google/common/hash/ChecksumHashFunction$ChecksumHasher;-><init>(Lcom/google/common/hash/ChecksumHashFunction;Ljava/util/zip/Checksum;Lcom/google/common/hash/ChecksumHashFunction$1;)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/ChecksumHashFunction;->toString:Ljava/lang/String;
return-object v0
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,74 @@
.class final Lcom/google/common/hash/Crc32cHashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "Crc32cHashFunction.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/Crc32cHashFunction$Crc32cHasher;
}
.end annotation
# static fields
.field public static final CRC_32_C:Lcom/google/common/hash/HashFunction;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/Crc32cHashFunction;
invoke-direct {v0}, Lcom/google/common/hash/Crc32cHashFunction;-><init>()V
sput-object v0, Lcom/google/common/hash/Crc32cHashFunction;->CRC_32_C:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
return-void
.end method
# virtual methods
.method public bits()I
.locals 1
const/16 v0, 0x20
return v0
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/Crc32cHashFunction$Crc32cHasher;
invoke-direct {v0}, Lcom/google/common/hash/Crc32cHashFunction$Crc32cHasher;-><init>()V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "Hashing.crc32c()"
return-object v0
.end method
@@ -0,0 +1,32 @@
.class interface abstract annotation Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.super Ljava/lang/Object;
.source "ElementTypesAreNonnullByDefault.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Lcom/google/common/annotations/GwtCompatible;
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->TYPE:Ljava/lang/annotation/ElementType;
}
.end annotation
.annotation runtime Ljavax/annotation/Nonnull;
.end annotation
.annotation runtime Ljavax/annotation/meta/TypeQualifierDefault;
value = {
.enum Ljava/lang/annotation/ElementType;->FIELD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->METHOD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->PARAMETER:Ljava/lang/annotation/ElementType;
}
.end annotation
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,44 @@
.class public interface abstract Lcom/google/common/hash/Funnel;
.super Ljava/lang/Object;
.source "Funnel.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/DoNotMock;
value = "Implement with a lambda"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/io/Serializable;"
}
.end annotation
# virtual methods
.method public abstract funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lcom/google/common/hash/PrimitiveSink;",
")V"
}
.end annotation
.end method
@@ -0,0 +1,150 @@
.class final enum Lcom/google/common/hash/Funnels$ByteArrayFunnel;
.super Ljava/lang/Enum;
.source "Funnels.java"
# interfaces
.implements Lcom/google/common/hash/Funnel;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "ByteArrayFunnel"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/Funnels$ByteArrayFunnel;",
">;",
"Lcom/google/common/hash/Funnel<",
"[B>;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/Funnels$ByteArrayFunnel;
.field public static final enum INSTANCE:Lcom/google/common/hash/Funnels$ByteArrayFunnel;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/Funnels$ByteArrayFunnel;
.locals 3
const/4 v0, 0x1
new-array v0, v0, [Lcom/google/common/hash/Funnels$ByteArrayFunnel;
.line 1
sget-object v1, Lcom/google/common/hash/Funnels$ByteArrayFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$ByteArrayFunnel;
const/4 v2, 0x0
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$ByteArrayFunnel;
const-string v1, "INSTANCE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/Funnels$ByteArrayFunnel;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/Funnels$ByteArrayFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$ByteArrayFunnel;
.line 2
invoke-static {}, Lcom/google/common/hash/Funnels$ByteArrayFunnel;->$values()[Lcom/google/common/hash/Funnels$ByteArrayFunnel;
move-result-object v0
sput-object v0, Lcom/google/common/hash/Funnels$ByteArrayFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$ByteArrayFunnel;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/Funnels$ByteArrayFunnel;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/Funnels$ByteArrayFunnel;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/Funnels$ByteArrayFunnel;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/Funnels$ByteArrayFunnel;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$ByteArrayFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$ByteArrayFunnel;
invoke-virtual {v0}, [Lcom/google/common/hash/Funnels$ByteArrayFunnel;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/Funnels$ByteArrayFunnel;
return-object v0
.end method
# virtual methods
.method public bridge synthetic funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 1
check-cast p1, [B
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Funnels$ByteArrayFunnel;->funnel([BLcom/google/common/hash/PrimitiveSink;)V
return-void
.end method
.method public funnel([BLcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 2
invoke-interface {p2, p1}, Lcom/google/common/hash/PrimitiveSink;->putBytes([B)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "Funnels.byteArrayFunnel()"
return-object v0
.end method
@@ -0,0 +1,155 @@
.class final enum Lcom/google/common/hash/Funnels$IntegerFunnel;
.super Ljava/lang/Enum;
.source "Funnels.java"
# interfaces
.implements Lcom/google/common/hash/Funnel;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "IntegerFunnel"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/Funnels$IntegerFunnel;",
">;",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/Funnels$IntegerFunnel;
.field public static final enum INSTANCE:Lcom/google/common/hash/Funnels$IntegerFunnel;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/Funnels$IntegerFunnel;
.locals 3
const/4 v0, 0x1
new-array v0, v0, [Lcom/google/common/hash/Funnels$IntegerFunnel;
.line 1
sget-object v1, Lcom/google/common/hash/Funnels$IntegerFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$IntegerFunnel;
const/4 v2, 0x0
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$IntegerFunnel;
const-string v1, "INSTANCE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/Funnels$IntegerFunnel;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/Funnels$IntegerFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$IntegerFunnel;
.line 2
invoke-static {}, Lcom/google/common/hash/Funnels$IntegerFunnel;->$values()[Lcom/google/common/hash/Funnels$IntegerFunnel;
move-result-object v0
sput-object v0, Lcom/google/common/hash/Funnels$IntegerFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$IntegerFunnel;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/Funnels$IntegerFunnel;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/Funnels$IntegerFunnel;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/Funnels$IntegerFunnel;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/Funnels$IntegerFunnel;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$IntegerFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$IntegerFunnel;
invoke-virtual {v0}, [Lcom/google/common/hash/Funnels$IntegerFunnel;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/Funnels$IntegerFunnel;
return-object v0
.end method
# virtual methods
.method public funnel(Ljava/lang/Integer;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 2
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
move-result p1
invoke-interface {p2, p1}, Lcom/google/common/hash/PrimitiveSink;->putInt(I)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
.method public bridge synthetic funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 1
check-cast p1, Ljava/lang/Integer;
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Funnels$IntegerFunnel;->funnel(Ljava/lang/Integer;Lcom/google/common/hash/PrimitiveSink;)V
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "Funnels.integerFunnel()"
return-object v0
.end method
@@ -0,0 +1,155 @@
.class final enum Lcom/google/common/hash/Funnels$LongFunnel;
.super Ljava/lang/Enum;
.source "Funnels.java"
# interfaces
.implements Lcom/google/common/hash/Funnel;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "LongFunnel"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/Funnels$LongFunnel;",
">;",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/Long;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/Funnels$LongFunnel;
.field public static final enum INSTANCE:Lcom/google/common/hash/Funnels$LongFunnel;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/Funnels$LongFunnel;
.locals 3
const/4 v0, 0x1
new-array v0, v0, [Lcom/google/common/hash/Funnels$LongFunnel;
.line 1
sget-object v1, Lcom/google/common/hash/Funnels$LongFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$LongFunnel;
const/4 v2, 0x0
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$LongFunnel;
const-string v1, "INSTANCE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/Funnels$LongFunnel;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/Funnels$LongFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$LongFunnel;
.line 2
invoke-static {}, Lcom/google/common/hash/Funnels$LongFunnel;->$values()[Lcom/google/common/hash/Funnels$LongFunnel;
move-result-object v0
sput-object v0, Lcom/google/common/hash/Funnels$LongFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$LongFunnel;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/Funnels$LongFunnel;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/Funnels$LongFunnel;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/Funnels$LongFunnel;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/Funnels$LongFunnel;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$LongFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$LongFunnel;
invoke-virtual {v0}, [Lcom/google/common/hash/Funnels$LongFunnel;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/Funnels$LongFunnel;
return-object v0
.end method
# virtual methods
.method public funnel(Ljava/lang/Long;Lcom/google/common/hash/PrimitiveSink;)V
.locals 2
.line 2
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v0
invoke-interface {p2, v0, v1}, Lcom/google/common/hash/PrimitiveSink;->putLong(J)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
.method public bridge synthetic funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 1
check-cast p1, Ljava/lang/Long;
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Funnels$LongFunnel;->funnel(Ljava/lang/Long;Lcom/google/common/hash/PrimitiveSink;)V
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "Funnels.longFunnel()"
return-object v0
.end method
@@ -0,0 +1,201 @@
.class Lcom/google/common/hash/Funnels$SequentialFunnel;
.super Ljava/lang/Object;
.source "Funnels.java"
# interfaces
.implements Lcom/google/common/hash/Funnel;
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SequentialFunnel"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/Iterable<",
"+TE;>;>;",
"Ljava/io/Serializable;"
}
.end annotation
# instance fields
.field private final elementFunnel:Lcom/google/common/hash/Funnel;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/hash/Funnel<",
"TE;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/common/hash/Funnel;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/hash/Funnel<",
"TE;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/common/hash/Funnel;
iput-object p1, p0, Lcom/google/common/hash/Funnels$SequentialFunnel;->elementFunnel:Lcom/google/common/hash/Funnel;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/Funnels$SequentialFunnel;
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/Funnels$SequentialFunnel;
.line 3
iget-object v0, p0, Lcom/google/common/hash/Funnels$SequentialFunnel;->elementFunnel:Lcom/google/common/hash/Funnel;
iget-object p1, p1, Lcom/google/common/hash/Funnels$SequentialFunnel;->elementFunnel:Lcom/google/common/hash/Funnel;
invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public funnel(Ljava/lang/Iterable;Lcom/google/common/hash/PrimitiveSink;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"+TE;>;",
"Lcom/google/common/hash/PrimitiveSink;",
")V"
}
.end annotation
.line 2
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
.line 3
iget-object v1, p0, Lcom/google/common/hash/Funnels$SequentialFunnel;->elementFunnel:Lcom/google/common/hash/Funnel;
invoke-interface {v1, v0, p2}, Lcom/google/common/hash/Funnel;->funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
goto :goto_0
:cond_0
return-void
.end method
.method public bridge synthetic funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 1
check-cast p1, Ljava/lang/Iterable;
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Funnels$SequentialFunnel;->funnel(Ljava/lang/Iterable;Lcom/google/common/hash/PrimitiveSink;)V
return-void
.end method
.method public hashCode()I
.locals 2
.line 1
const-class v0, Lcom/google/common/hash/Funnels$SequentialFunnel;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
iget-object v1, p0, Lcom/google/common/hash/Funnels$SequentialFunnel;->elementFunnel:Lcom/google/common/hash/Funnel;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
xor-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/Funnels$SequentialFunnel;->elementFunnel:Lcom/google/common/hash/Funnel;
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v1
add-int/lit8 v1, v1, 0x1a
const-string v2, "Funnels.sequentialFunnel("
const-string v3, ")"
invoke-static {v1, v2, v0, v3}, Lcom/google/android/gms/ads/internal/a;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,102 @@
.class Lcom/google/common/hash/Funnels$SinkAsStream;
.super Ljava/io/OutputStream;
.source "Funnels.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SinkAsStream"
.end annotation
# instance fields
.field public final sink:Lcom/google/common/hash/PrimitiveSink;
# direct methods
.method public constructor <init>(Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/common/hash/PrimitiveSink;
iput-object p1, p0, Lcom/google/common/hash/Funnels$SinkAsStream;->sink:Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/Funnels$SinkAsStream;->sink:Lcom/google/common/hash/PrimitiveSink;
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v1
add-int/lit8 v1, v1, 0x18
const-string v2, "Funnels.asOutputStream("
const-string v3, ")"
invoke-static {v1, v2, v0, v3}, Lcom/google/android/gms/ads/internal/a;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(I)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/Funnels$SinkAsStream;->sink:Lcom/google/common/hash/PrimitiveSink;
int-to-byte p1, p1
invoke-interface {v0, p1}, Lcom/google/common/hash/PrimitiveSink;->putByte(B)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
.method public write([B)V
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/Funnels$SinkAsStream;->sink:Lcom/google/common/hash/PrimitiveSink;
invoke-interface {v0, p1}, Lcom/google/common/hash/PrimitiveSink;->putBytes([B)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
.method public write([BII)V
.locals 1
.line 3
iget-object v0, p0, Lcom/google/common/hash/Funnels$SinkAsStream;->sink:Lcom/google/common/hash/PrimitiveSink;
invoke-interface {v0, p1, p2, p3}, Lcom/google/common/hash/PrimitiveSink;->putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
@@ -0,0 +1,60 @@
.class Lcom/google/common/hash/Funnels$StringCharsetFunnel$SerializedForm;
.super Ljava/lang/Object;
.source "Funnels.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels$StringCharsetFunnel;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SerializedForm"
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field private final charsetCanonicalName:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/nio/charset/Charset;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-virtual {p1}, Ljava/nio/charset/Charset;->name()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel$SerializedForm;->charsetCanonicalName:Ljava/lang/String;
return-void
.end method
.method private readResolve()Ljava/lang/Object;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel$SerializedForm;->charsetCanonicalName:Ljava/lang/String;
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object v0
invoke-static {v0}, Lcom/google/common/hash/Funnels;->stringFunnel(Ljava/nio/charset/Charset;)Lcom/google/common/hash/Funnel;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,175 @@
.class Lcom/google/common/hash/Funnels$StringCharsetFunnel;
.super Ljava/lang/Object;
.source "Funnels.java"
# interfaces
.implements Lcom/google/common/hash/Funnel;
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "StringCharsetFunnel"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/Funnels$StringCharsetFunnel$SerializedForm;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/CharSequence;",
">;",
"Ljava/io/Serializable;"
}
.end annotation
# instance fields
.field private final charset:Ljava/nio/charset/Charset;
# direct methods
.method public constructor <init>(Ljava/nio/charset/Charset;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/nio/charset/Charset;
iput-object p1, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->charset:Ljava/nio/charset/Charset;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/Funnels$StringCharsetFunnel;
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/Funnels$StringCharsetFunnel;
.line 3
iget-object v0, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->charset:Ljava/nio/charset/Charset;
iget-object p1, p1, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->charset:Ljava/nio/charset/Charset;
invoke-virtual {v0, p1}, Ljava/nio/charset/Charset;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public funnel(Ljava/lang/CharSequence;Lcom/google/common/hash/PrimitiveSink;)V
.locals 1
.line 2
iget-object v0, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->charset:Ljava/nio/charset/Charset;
invoke-interface {p2, p1, v0}, Lcom/google/common/hash/PrimitiveSink;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
.method public bridge synthetic funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 1
check-cast p1, Ljava/lang/CharSequence;
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->funnel(Ljava/lang/CharSequence;Lcom/google/common/hash/PrimitiveSink;)V
return-void
.end method
.method public hashCode()I
.locals 2
.line 1
const-class v0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
iget-object v1, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->charset:Ljava/nio/charset/Charset;
invoke-virtual {v1}, Ljava/nio/charset/Charset;->hashCode()I
move-result v1
xor-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->charset:Ljava/nio/charset/Charset;
invoke-virtual {v0}, Ljava/nio/charset/Charset;->name()Ljava/lang/String;
move-result-object v0
const/16 v1, 0x16
invoke-static {v0, v1}, Lcom/android/billingclient/api/d;->a(Ljava/lang/String;I)I
move-result v1
const-string v2, "Funnels.stringFunnel("
const-string v3, ")"
invoke-static {v1, v2, v0, v3}, Lcom/google/android/gms/ads/internal/a;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public writeReplace()Ljava/lang/Object;
.locals 2
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$StringCharsetFunnel$SerializedForm;
iget-object v1, p0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;->charset:Ljava/nio/charset/Charset;
invoke-direct {v0, v1}, Lcom/google/common/hash/Funnels$StringCharsetFunnel$SerializedForm;-><init>(Ljava/nio/charset/Charset;)V
return-object v0
.end method
@@ -0,0 +1,151 @@
.class final enum Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
.super Ljava/lang/Enum;
.source "Funnels.java"
# interfaces
.implements Lcom/google/common/hash/Funnel;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Funnels;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "UnencodedCharsFunnel"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;",
">;",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/CharSequence;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
.field public static final enum INSTANCE:Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
.locals 3
const/4 v0, 0x1
new-array v0, v0, [Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
.line 1
sget-object v1, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
const/4 v2, 0x0
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
const-string v1, "INSTANCE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
.line 2
invoke-static {}, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->$values()[Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
move-result-object v0
sput-object v0, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->$VALUES:[Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
invoke-virtual {v0}, [Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
return-object v0
.end method
# virtual methods
.method public funnel(Ljava/lang/CharSequence;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 2
invoke-interface {p2, p1}, Lcom/google/common/hash/PrimitiveSink;->putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/PrimitiveSink;
return-void
.end method
.method public bridge synthetic funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V
.locals 0
.line 1
check-cast p1, Ljava/lang/CharSequence;
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->funnel(Ljava/lang/CharSequence;Lcom/google/common/hash/PrimitiveSink;)V
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "Funnels.unencodedCharsFunnel()"
return-object v0
.end method
@@ -0,0 +1,156 @@
.class public final Lcom/google/common/hash/Funnels;
.super Ljava/lang/Object;
.source "Funnels.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/Funnels$SinkAsStream;,
Lcom/google/common/hash/Funnels$LongFunnel;,
Lcom/google/common/hash/Funnels$SequentialFunnel;,
Lcom/google/common/hash/Funnels$IntegerFunnel;,
Lcom/google/common/hash/Funnels$StringCharsetFunnel;,
Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;,
Lcom/google/common/hash/Funnels$ByteArrayFunnel;
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static asOutputStream(Lcom/google/common/hash/PrimitiveSink;)Ljava/io/OutputStream;
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$SinkAsStream;
invoke-direct {v0, p0}, Lcom/google/common/hash/Funnels$SinkAsStream;-><init>(Lcom/google/common/hash/PrimitiveSink;)V
return-object v0
.end method
.method public static byteArrayFunnel()Lcom/google/common/hash/Funnel;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/hash/Funnel<",
"[B>;"
}
.end annotation
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$ByteArrayFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$ByteArrayFunnel;
return-object v0
.end method
.method public static integerFunnel()Lcom/google/common/hash/Funnel;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$IntegerFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$IntegerFunnel;
return-object v0
.end method
.method public static longFunnel()Lcom/google/common/hash/Funnel;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/Long;",
">;"
}
.end annotation
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$LongFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$LongFunnel;
return-object v0
.end method
.method public static sequentialFunnel(Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/Funnel;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">(",
"Lcom/google/common/hash/Funnel<",
"TE;>;)",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/Iterable<",
"+TE;>;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$SequentialFunnel;
invoke-direct {v0, p0}, Lcom/google/common/hash/Funnels$SequentialFunnel;-><init>(Lcom/google/common/hash/Funnel;)V
return-object v0
.end method
.method public static stringFunnel(Ljava/nio/charset/Charset;)Lcom/google/common/hash/Funnel;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/nio/charset/Charset;",
")",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/CharSequence;",
">;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/common/hash/Funnels$StringCharsetFunnel;
invoke-direct {v0, p0}, Lcom/google/common/hash/Funnels$StringCharsetFunnel;-><init>(Ljava/nio/charset/Charset;)V
return-object v0
.end method
.method public static unencodedCharsFunnel()Lcom/google/common/hash/Funnel;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/hash/Funnel<",
"Ljava/lang/CharSequence;",
">;"
}
.end annotation
.line 1
sget-object v0, Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;->INSTANCE:Lcom/google/common/hash/Funnels$UnencodedCharsFunnel;
return-object v0
.end method
@@ -0,0 +1,318 @@
.class final Lcom/google/common/hash/HashCode$BytesHashCode;
.super Lcom/google/common/hash/HashCode;
.source "HashCode.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/HashCode;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "BytesHashCode"
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field public final bytes:[B
# direct methods
.method public constructor <init>([B)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/HashCode;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, [B
iput-object p1, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
return-void
.end method
# virtual methods
.method public asBytes()[B
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
invoke-virtual {v0}, [B->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [B
return-object v0
.end method
.method public asInt()I
.locals 5
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
array-length v1, v0
const/4 v2, 0x1
const/4 v3, 0x0
const/4 v4, 0x4
if-lt v1, v4, :cond_0
move v1, v2
goto :goto_0
:cond_0
move v1, v3
:goto_0
array-length v0, v0
const-string v4, "HashCode#asInt() requires >= 4 bytes (it only has %s bytes)."
invoke-static {v1, v4, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;I)V
.line 2
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
aget-byte v1, v0, v3
and-int/lit16 v1, v1, 0xff
aget-byte v2, v0, v2
and-int/lit16 v2, v2, 0xff
shl-int/lit8 v2, v2, 0x8
or-int/2addr v1, v2
const/4 v2, 0x2
aget-byte v2, v0, v2
and-int/lit16 v2, v2, 0xff
shl-int/lit8 v2, v2, 0x10
or-int/2addr v1, v2
const/4 v2, 0x3
aget-byte v0, v0, v2
and-int/lit16 v0, v0, 0xff
shl-int/lit8 v0, v0, 0x18
or-int/2addr v0, v1
return v0
.end method
.method public asLong()J
.locals 3
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
array-length v1, v0
const/16 v2, 0x8
if-lt v1, v2, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
array-length v0, v0
const-string v2, "HashCode#asLong() requires >= 8 bytes (it only has %s bytes)."
invoke-static {v1, v2, v0}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/String;I)V
.line 2
invoke-virtual {p0}, Lcom/google/common/hash/HashCode$BytesHashCode;->padToLong()J
move-result-wide v0
return-wide v0
.end method
.method public bits()I
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
array-length v0, v0
mul-int/lit8 v0, v0, 0x8
return v0
.end method
.method public equalsSameBits(Lcom/google/common/hash/HashCode;)Z
.locals 6
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
array-length v0, v0
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->getBytesInternal()[B
move-result-object v1
array-length v1, v1
const/4 v2, 0x0
if-eq v0, v1, :cond_0
return v2
:cond_0
const/4 v0, 0x1
move v3, v0
move v1, v2
.line 2
:goto_0
iget-object v4, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
array-length v5, v4
if-ge v1, v5, :cond_2
.line 3
aget-byte v4, v4, v1
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->getBytesInternal()[B
move-result-object v5
aget-byte v5, v5, v1
if-ne v4, v5, :cond_1
move v4, v0
goto :goto_1
:cond_1
move v4, v2
:goto_1
and-int/2addr v3, v4
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
return v3
.end method
.method public getBytesInternal()[B
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
return-object v0
.end method
.method public padToLong()J
.locals 7
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
const/4 v1, 0x0
aget-byte v0, v0, v1
and-int/lit16 v0, v0, 0xff
int-to-long v0, v0
const/4 v2, 0x1
.line 2
:goto_0
iget-object v3, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
array-length v3, v3
const/16 v4, 0x8
invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I
move-result v3
if-ge v2, v3, :cond_0
.line 3
iget-object v3, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
aget-byte v3, v3, v2
int-to-long v3, v3
const-wide/16 v5, 0xff
and-long/2addr v3, v5
mul-int/lit8 v5, v2, 0x8
shl-long/2addr v3, v5
or-long/2addr v0, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-wide v0
.end method
.method public writeBytesToImpl([BII)V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashCode$BytesHashCode;->bytes:[B
const/4 v1, 0x0
invoke-static {v0, v1, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
return-void
.end method
@@ -0,0 +1,179 @@
.class final Lcom/google/common/hash/HashCode$IntHashCode;
.super Lcom/google/common/hash/HashCode;
.source "HashCode.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/HashCode;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "IntHashCode"
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field public final hash:I
# direct methods
.method public constructor <init>(I)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/HashCode;-><init>()V
.line 2
iput p1, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
return-void
.end method
# virtual methods
.method public asBytes()[B
.locals 4
const/4 v0, 0x4
new-array v0, v0, [B
.line 1
iget v1, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
int-to-byte v2, v1
const/4 v3, 0x0
aput-byte v2, v0, v3
shr-int/lit8 v2, v1, 0x8
int-to-byte v2, v2
const/4 v3, 0x1
aput-byte v2, v0, v3
shr-int/lit8 v2, v1, 0x10
int-to-byte v2, v2
const/4 v3, 0x2
aput-byte v2, v0, v3
shr-int/lit8 v1, v1, 0x18
int-to-byte v1, v1
const/4 v2, 0x3
aput-byte v1, v0, v2
return-object v0
.end method
.method public asInt()I
.locals 1
.line 1
iget v0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
return v0
.end method
.method public asLong()J
.locals 2
.line 1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "this HashCode only has 32 bits; cannot create a long"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public bits()I
.locals 1
const/16 v0, 0x20
return v0
.end method
.method public equalsSameBits(Lcom/google/common/hash/HashCode;)Z
.locals 1
.line 1
iget v0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->asInt()I
move-result p1
if-ne v0, p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public padToLong()J
.locals 2
.line 1
iget v0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
invoke-static {v0}, Lcom/google/common/primitives/UnsignedInts;->toLong(I)J
move-result-wide v0
return-wide v0
.end method
.method public writeBytesToImpl([BII)V
.locals 4
const/4 v0, 0x0
:goto_0
if-ge v0, p3, :cond_0
add-int v1, p2, v0
.line 1
iget v2, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
mul-int/lit8 v3, v0, 0x8
shr-int/2addr v2, v3
int-to-byte v2, v2
aput-byte v2, p1, v1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,237 @@
.class final Lcom/google/common/hash/HashCode$LongHashCode;
.super Lcom/google/common/hash/HashCode;
.source "HashCode.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/HashCode;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "LongHashCode"
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field public final hash:J
# direct methods
.method public constructor <init>(J)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/HashCode;-><init>()V
.line 2
iput-wide p1, p0, Lcom/google/common/hash/HashCode$LongHashCode;->hash:J
return-void
.end method
# virtual methods
.method public asBytes()[B
.locals 6
const/16 v0, 0x8
new-array v1, v0, [B
.line 1
iget-wide v2, p0, Lcom/google/common/hash/HashCode$LongHashCode;->hash:J
long-to-int v4, v2
int-to-byte v4, v4
const/4 v5, 0x0
aput-byte v4, v1, v5
shr-long v4, v2, v0
long-to-int v0, v4
int-to-byte v0, v0
const/4 v4, 0x1
aput-byte v0, v1, v4
const/16 v0, 0x10
shr-long v4, v2, v0
long-to-int v0, v4
int-to-byte v0, v0
const/4 v4, 0x2
aput-byte v0, v1, v4
const/16 v0, 0x18
shr-long v4, v2, v0
long-to-int v0, v4
int-to-byte v0, v0
const/4 v4, 0x3
aput-byte v0, v1, v4
const/16 v0, 0x20
shr-long v4, v2, v0
long-to-int v0, v4
int-to-byte v0, v0
const/4 v4, 0x4
aput-byte v0, v1, v4
const/16 v0, 0x28
shr-long v4, v2, v0
long-to-int v0, v4
int-to-byte v0, v0
const/4 v4, 0x5
aput-byte v0, v1, v4
const/16 v0, 0x30
shr-long v4, v2, v0
long-to-int v0, v4
int-to-byte v0, v0
const/4 v4, 0x6
aput-byte v0, v1, v4
const/16 v0, 0x38
shr-long/2addr v2, v0
long-to-int v0, v2
int-to-byte v0, v0
const/4 v2, 0x7
aput-byte v0, v1, v2
return-object v1
.end method
.method public asInt()I
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/common/hash/HashCode$LongHashCode;->hash:J
long-to-int v0, v0
return v0
.end method
.method public asLong()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/common/hash/HashCode$LongHashCode;->hash:J
return-wide v0
.end method
.method public bits()I
.locals 1
const/16 v0, 0x40
return v0
.end method
.method public equalsSameBits(Lcom/google/common/hash/HashCode;)Z
.locals 4
.line 1
iget-wide v0, p0, Lcom/google/common/hash/HashCode$LongHashCode;->hash:J
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->asLong()J
move-result-wide v2
cmp-long p1, v0, v2
if-nez p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public padToLong()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/common/hash/HashCode$LongHashCode;->hash:J
return-wide v0
.end method
.method public writeBytesToImpl([BII)V
.locals 5
const/4 v0, 0x0
:goto_0
if-ge v0, p3, :cond_0
add-int v1, p2, v0
.line 1
iget-wide v2, p0, Lcom/google/common/hash/HashCode$LongHashCode;->hash:J
mul-int/lit8 v4, v0, 0x8
shr-long/2addr v2, v4
long-to-int v2, v2
int-to-byte v2, v2
aput-byte v2, p1, v1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,509 @@
.class public abstract Lcom/google/common/hash/HashCode;
.super Ljava/lang/Object;
.source "HashCode.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/HashCode$BytesHashCode;,
Lcom/google/common/hash/HashCode$LongHashCode;,
Lcom/google/common/hash/HashCode$IntHashCode;
}
.end annotation
# static fields
.field private static final hexDigits:[C
# direct methods
.method static constructor <clinit>()V
.locals 1
const-string v0, "0123456789abcdef"
.line 1
invoke-virtual {v0}, Ljava/lang/String;->toCharArray()[C
move-result-object v0
sput-object v0, Lcom/google/common/hash/HashCode;->hexDigits:[C
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static decode(C)I
.locals 3
const/16 v0, 0x30
if-lt p0, v0, :cond_0
const/16 v1, 0x39
if-gt p0, v1, :cond_0
sub-int/2addr p0, v0
return p0
:cond_0
const/16 v0, 0x61
if-lt p0, v0, :cond_1
const/16 v1, 0x66
if-gt p0, v1, :cond_1
sub-int/2addr p0, v0
add-int/lit8 p0, p0, 0xa
return p0
.line 1
:cond_1
new-instance v0, Ljava/lang/IllegalArgumentException;
const/16 v1, 0x20
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v1, "Illegal hexadecimal character: "
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static fromBytes([B)Lcom/google/common/hash/HashCode;
.locals 2
.line 1
array-length v0, p0
const/4 v1, 0x1
if-lt v0, v1, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
const-string v0, "A HashCode must contain at least 1 byte."
invoke-static {v1, v0}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 2
invoke-virtual {p0}, [B->clone()Ljava/lang/Object;
move-result-object p0
check-cast p0, [B
invoke-static {p0}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object p0
return-object p0
.end method
.method public static fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/HashCode$BytesHashCode;
invoke-direct {v0, p0}, Lcom/google/common/hash/HashCode$BytesHashCode;-><init>([B)V
return-object v0
.end method
.method public static fromInt(I)Lcom/google/common/hash/HashCode;
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/HashCode$IntHashCode;
invoke-direct {v0, p0}, Lcom/google/common/hash/HashCode$IntHashCode;-><init>(I)V
return-object v0
.end method
.method public static fromLong(J)Lcom/google/common/hash/HashCode;
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/HashCode$LongHashCode;
invoke-direct {v0, p0, p1}, Lcom/google/common/hash/HashCode$LongHashCode;-><init>(J)V
return-object v0
.end method
.method public static fromString(Ljava/lang/String;)Lcom/google/common/hash/HashCode;
.locals 5
.line 1
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x2
if-lt v0, v3, :cond_0
move v0, v1
goto :goto_0
:cond_0
move v0, v2
:goto_0
const-string v4, "input string (%s) must have at least 2 characters"
.line 2
invoke-static {v0, v4, p0}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
.line 3
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
rem-int/2addr v0, v3
if-nez v0, :cond_1
goto :goto_1
:cond_1
move v1, v2
:goto_1
const-string v0, "input string (%s) must have an even number of characters"
.line 4
invoke-static {v1, v0, p0}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
.line 5
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
div-int/2addr v0, v3
new-array v0, v0, [B
.line 6
:goto_2
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
if-ge v2, v1, :cond_2
.line 7
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
move-result v1
invoke-static {v1}, Lcom/google/common/hash/HashCode;->decode(C)I
move-result v1
shl-int/lit8 v1, v1, 0x4
add-int/lit8 v3, v2, 0x1
.line 8
invoke-virtual {p0, v3}, Ljava/lang/String;->charAt(I)C
move-result v3
invoke-static {v3}, Lcom/google/common/hash/HashCode;->decode(C)I
move-result v3
.line 9
div-int/lit8 v4, v2, 0x2
add-int/2addr v1, v3
int-to-byte v1, v1
aput-byte v1, v0, v4
add-int/lit8 v2, v2, 0x2
goto :goto_2
.line 10
:cond_2
invoke-static {v0}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public abstract asBytes()[B
.end method
.method public abstract asInt()I
.end method
.method public abstract asLong()J
.end method
.method public abstract bits()I
.end method
.method public final equals(Ljava/lang/Object;)Z
.locals 3
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/HashCode;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/HashCode;
.line 3
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->bits()I
move-result v0
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->bits()I
move-result v2
if-ne v0, v2, :cond_0
invoke-virtual {p0, p1}, Lcom/google/common/hash/HashCode;->equalsSameBits(Lcom/google/common/hash/HashCode;)Z
move-result p1
if-eqz p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public abstract equalsSameBits(Lcom/google/common/hash/HashCode;)Z
.end method
.method public getBytesInternal()[B
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->asBytes()[B
move-result-object v0
return-object v0
.end method
.method public final hashCode()I
.locals 5
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->bits()I
move-result v0
const/16 v1, 0x20
if-lt v0, v1, :cond_0
.line 2
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->asInt()I
move-result v0
return v0
.line 3
:cond_0
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->getBytesInternal()[B
move-result-object v0
const/4 v1, 0x0
.line 4
aget-byte v1, v0, v1
and-int/lit16 v1, v1, 0xff
const/4 v2, 0x1
.line 5
:goto_0
array-length v3, v0
if-ge v2, v3, :cond_1
.line 6
aget-byte v3, v0, v2
and-int/lit16 v3, v3, 0xff
mul-int/lit8 v4, v2, 0x8
shl-int/2addr v3, v4
or-int/2addr v1, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return v1
.end method
.method public abstract padToLong()J
.end method
.method public final toString()Ljava/lang/String;
.locals 7
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->getBytesInternal()[B
move-result-object v0
.line 2
new-instance v1, Ljava/lang/StringBuilder;
array-length v2, v0
mul-int/lit8 v2, v2, 0x2
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(I)V
.line 3
array-length v2, v0
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_0
aget-byte v4, v0, v3
.line 4
sget-object v5, Lcom/google/common/hash/HashCode;->hexDigits:[C
shr-int/lit8 v6, v4, 0x4
and-int/lit8 v6, v6, 0xf
aget-char v6, v5, v6
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
and-int/lit8 v4, v4, 0xf
aget-char v4, v5, v4
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 5
:cond_0
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public writeBytesTo([BII)I
.locals 2
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
const/4 v0, 0x2
new-array v0, v0, [I
const/4 v1, 0x0
aput p3, v0, v1
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->bits()I
move-result p3
div-int/lit8 p3, p3, 0x8
const/4 v1, 0x1
aput p3, v0, v1
invoke-static {v0}, Lcom/google/common/primitives/Ints;->min([I)I
move-result p3
add-int v0, p2, p3
.line 2
array-length v1, p1
invoke-static {p2, v0, v1}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
.line 3
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/HashCode;->writeBytesToImpl([BII)V
return p3
.end method
.method public abstract writeBytesToImpl([BII)V
.end method
@@ -0,0 +1,60 @@
.class public interface abstract Lcom/google/common/hash/HashFunction;
.super Ljava/lang/Object;
.source "HashFunction.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
# virtual methods
.method public abstract bits()I
.end method
.method public abstract hashBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/HashCode;
.end method
.method public abstract hashBytes([B)Lcom/google/common/hash/HashCode;
.end method
.method public abstract hashBytes([BII)Lcom/google/common/hash/HashCode;
.end method
.method public abstract hashInt(I)Lcom/google/common/hash/HashCode;
.end method
.method public abstract hashLong(J)Lcom/google/common/hash/HashCode;
.end method
.method public abstract hashObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/HashCode;
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;)",
"Lcom/google/common/hash/HashCode;"
}
.end annotation
.end method
.method public abstract hashString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/HashCode;
.end method
.method public abstract hashUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/HashCode;
.end method
.method public abstract newHasher()Lcom/google/common/hash/Hasher;
.end method
.method public abstract newHasher(I)Lcom/google/common/hash/Hasher;
.end method
@@ -0,0 +1,226 @@
.class public interface abstract Lcom/google/common/hash/Hasher;
.super Ljava/lang/Object;
.source "Hasher.java"
# interfaces
.implements Lcom/google/common/hash/PrimitiveSink;
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
# virtual methods
.method public abstract hash()Lcom/google/common/hash/HashCode;
.end method
.method public abstract hashCode()I
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end method
.method public abstract putBoolean(Z)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putBoolean(Z)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putBoolean(Z)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putByte(B)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putByte(B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.end method
.method public abstract putBytes([B)Lcom/google/common/hash/Hasher;
.end method
.method public abstract putBytes([BII)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 2
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putBytes([B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 3
invoke-interface {p0, p1, p2, p3}, Lcom/google/common/hash/Hasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putChar(C)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putChar(C)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putChar(C)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putDouble(D)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putDouble(D)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1, p2}, Lcom/google/common/hash/Hasher;->putDouble(D)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putFloat(F)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putFloat(F)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putFloat(F)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putInt(I)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putInt(I)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putLong(J)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putLong(J)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1, p2}, Lcom/google/common/hash/Hasher;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/Hasher;
.param p1 # Ljava/lang/Object;
.annotation runtime Lcom/google/common/hash/ParametricNullness;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/google/common/hash/Funnel<",
"-TT;>;)",
"Lcom/google/common/hash/Hasher;"
}
.end annotation
.end method
.method public abstract putShort(S)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putShort(S)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putShort(S)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1, p2}, Lcom/google/common/hash/Hasher;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public abstract putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
.end method
.method public bridge synthetic putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-interface {p0, p1}, Lcom/google/common/hash/Hasher;->putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/common/hash/Hashing$1;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,51 @@
.class final enum Lcom/google/common/hash/Hashing$ChecksumType$1;
.super Lcom/google/common/hash/Hashing$ChecksumType;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing$ChecksumType;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, p3, v0}, Lcom/google/common/hash/Hashing$ChecksumType;-><init>(Ljava/lang/String;ILjava/lang/String;Lcom/google/common/hash/Hashing$1;)V
return-void
.end method
# virtual methods
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/Hashing$ChecksumType$1;->get()Ljava/util/zip/Checksum;
move-result-object v0
return-object v0
.end method
.method public get()Ljava/util/zip/Checksum;
.locals 1
.line 2
new-instance v0, Ljava/util/zip/CRC32;
invoke-direct {v0}, Ljava/util/zip/CRC32;-><init>()V
return-object v0
.end method
@@ -0,0 +1,51 @@
.class final enum Lcom/google/common/hash/Hashing$ChecksumType$2;
.super Lcom/google/common/hash/Hashing$ChecksumType;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing$ChecksumType;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, p3, v0}, Lcom/google/common/hash/Hashing$ChecksumType;-><init>(Ljava/lang/String;ILjava/lang/String;Lcom/google/common/hash/Hashing$1;)V
return-void
.end method
# virtual methods
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/Hashing$ChecksumType$2;->get()Ljava/util/zip/Checksum;
move-result-object v0
return-object v0
.end method
.method public get()Ljava/util/zip/Checksum;
.locals 1
.line 2
new-instance v0, Ljava/util/zip/Adler32;
invoke-direct {v0}, Ljava/util/zip/Adler32;-><init>()V
return-object v0
.end method
@@ -0,0 +1,171 @@
.class abstract enum Lcom/google/common/hash/Hashing$ChecksumType;
.super Ljava/lang/Enum;
.source "Hashing.java"
# interfaces
.implements Lcom/google/common/hash/ImmutableSupplier;
# annotations
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4409
name = "ChecksumType"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/Hashing$ChecksumType;",
">;",
"Lcom/google/common/hash/ImmutableSupplier<",
"Ljava/util/zip/Checksum;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/Hashing$ChecksumType;
.field public static final enum ADLER_32:Lcom/google/common/hash/Hashing$ChecksumType;
.field public static final enum CRC_32:Lcom/google/common/hash/Hashing$ChecksumType;
# instance fields
.field public final hashFunction:Lcom/google/common/hash/HashFunction;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/Hashing$ChecksumType;
.locals 3
const/4 v0, 0x2
new-array v0, v0, [Lcom/google/common/hash/Hashing$ChecksumType;
.line 1
sget-object v1, Lcom/google/common/hash/Hashing$ChecksumType;->CRC_32:Lcom/google/common/hash/Hashing$ChecksumType;
const/4 v2, 0x0
aput-object v1, v0, v2
sget-object v1, Lcom/google/common/hash/Hashing$ChecksumType;->ADLER_32:Lcom/google/common/hash/Hashing$ChecksumType;
const/4 v2, 0x1
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/common/hash/Hashing$ChecksumType$1;
const-string v1, "CRC_32"
const/4 v2, 0x0
const-string v3, "Hashing.crc32()"
invoke-direct {v0, v1, v2, v3}, Lcom/google/common/hash/Hashing$ChecksumType$1;-><init>(Ljava/lang/String;ILjava/lang/String;)V
sput-object v0, Lcom/google/common/hash/Hashing$ChecksumType;->CRC_32:Lcom/google/common/hash/Hashing$ChecksumType;
.line 2
new-instance v0, Lcom/google/common/hash/Hashing$ChecksumType$2;
const-string v1, "ADLER_32"
const/4 v2, 0x1
const-string v3, "Hashing.adler32()"
invoke-direct {v0, v1, v2, v3}, Lcom/google/common/hash/Hashing$ChecksumType$2;-><init>(Ljava/lang/String;ILjava/lang/String;)V
sput-object v0, Lcom/google/common/hash/Hashing$ChecksumType;->ADLER_32:Lcom/google/common/hash/Hashing$ChecksumType;
.line 3
invoke-static {}, Lcom/google/common/hash/Hashing$ChecksumType;->$values()[Lcom/google/common/hash/Hashing$ChecksumType;
move-result-object v0
sput-object v0, Lcom/google/common/hash/Hashing$ChecksumType;->$VALUES:[Lcom/google/common/hash/Hashing$ChecksumType;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")V"
}
.end annotation
.line 2
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 3
new-instance p1, Lcom/google/common/hash/ChecksumHashFunction;
const/16 p2, 0x20
invoke-direct {p1, p0, p2, p3}, Lcom/google/common/hash/ChecksumHashFunction;-><init>(Lcom/google/common/hash/ImmutableSupplier;ILjava/lang/String;)V
iput-object p1, p0, Lcom/google/common/hash/Hashing$ChecksumType;->hashFunction:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;ILjava/lang/String;Lcom/google/common/hash/Hashing$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/common/hash/Hashing$ChecksumType;-><init>(Ljava/lang/String;ILjava/lang/String;)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/Hashing$ChecksumType;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/Hashing$ChecksumType;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/Hashing$ChecksumType;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/Hashing$ChecksumType;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$ChecksumType;->$VALUES:[Lcom/google/common/hash/Hashing$ChecksumType;
invoke-virtual {v0}, [Lcom/google/common/hash/Hashing$ChecksumType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/Hashing$ChecksumType;
return-object v0
.end method
@@ -0,0 +1,212 @@
.class final Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;
.super Lcom/google/common/hash/AbstractCompositeHashFunction;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "ConcatenatedHashFunction"
.end annotation
# direct methods
.method private varargs constructor <init>([Lcom/google/common/hash/HashFunction;)V
.locals 7
.line 2
invoke-direct {p0, p1}, Lcom/google/common/hash/AbstractCompositeHashFunction;-><init>([Lcom/google/common/hash/HashFunction;)V
.line 3
array-length v0, p1
const/4 v1, 0x0
move v2, v1
:goto_0
if-ge v2, v0, :cond_1
aget-object v3, p1, v2
.line 4
invoke-interface {v3}, Lcom/google/common/hash/HashFunction;->bits()I
move-result v4
rem-int/lit8 v4, v4, 0x8
if-nez v4, :cond_0
const/4 v4, 0x1
goto :goto_1
:cond_0
move v4, v1
.line 5
:goto_1
invoke-interface {v3}, Lcom/google/common/hash/HashFunction;->bits()I
move-result v5
const-string v6, "the number of bits (%s) in hashFunction (%s) must be divisible by 8"
.line 6
invoke-static {v4, v6, v5, v3}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;ILjava/lang/Object;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public synthetic constructor <init>([Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/Hashing$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;-><init>([Lcom/google/common/hash/HashFunction;)V
return-void
.end method
# virtual methods
.method public bits()I
.locals 5
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
array-length v1, v0
const/4 v2, 0x0
move v3, v2
:goto_0
if-ge v2, v1, :cond_0
aget-object v4, v0, v2
.line 2
invoke-interface {v4}, Lcom/google/common/hash/HashFunction;->bits()I
move-result v4
add-int/2addr v3, v4
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return v3
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;
.line 3
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
iget-object p1, p1, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
invoke-static {v0, p1}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public hashCode()I
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/AbstractCompositeHashFunction;->functions:[Lcom/google/common/hash/HashFunction;
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public makeHash([Lcom/google/common/hash/Hasher;)Lcom/google/common/hash/HashCode;
.locals 6
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;->bits()I
move-result v0
div-int/lit8 v0, v0, 0x8
new-array v0, v0, [B
.line 2
array-length v1, p1
const/4 v2, 0x0
move v3, v2
:goto_0
if-ge v2, v1, :cond_0
aget-object v4, p1, v2
.line 3
invoke-interface {v4}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object v4
.line 4
invoke-virtual {v4}, Lcom/google/common/hash/HashCode;->bits()I
move-result v5
div-int/lit8 v5, v5, 0x8
invoke-virtual {v4, v0, v3, v5}, Lcom/google/common/hash/HashCode;->writeBytesTo([BII)I
move-result v4
add-int/2addr v3, v4
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 5
:cond_0
invoke-static {v0}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,67 @@
.class final Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "LinearCongruentialGenerator"
.end annotation
# instance fields
.field private state:J
# direct methods
.method public constructor <init>(J)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-wide p1, p0, Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;->state:J
return-void
.end method
# virtual methods
.method public nextDouble()D
.locals 4
.line 1
iget-wide v0, p0, Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;->state:J
const-wide v2, 0x27bb2ee687b0b0fdL # 2.694898184339827E-117
mul-long/2addr v0, v2
const-wide/16 v2, 0x1
add-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;->state:J
const/16 v2, 0x21
ushr-long/2addr v0, v2
long-to-int v0, v0
add-int/lit8 v0, v0, 0x1
int-to-double v0, v0
const-wide/high16 v2, 0x41e0000000000000L # 2.147483648E9
div-double/2addr v0, v2
return-wide v0
.end method
@@ -0,0 +1,46 @@
.class Lcom/google/common/hash/Hashing$Md5Holder;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Md5Holder"
.end annotation
# static fields
.field public static final MD5:Lcom/google/common/hash/HashFunction;
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction;
const-string v1, "MD5"
const-string v2, "Hashing.md5()"
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/MessageDigestHashFunction;-><init>(Ljava/lang/String;Ljava/lang/String;)V
sput-object v0, Lcom/google/common/hash/Hashing$Md5Holder;->MD5:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,46 @@
.class Lcom/google/common/hash/Hashing$Sha1Holder;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Sha1Holder"
.end annotation
# static fields
.field public static final SHA_1:Lcom/google/common/hash/HashFunction;
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction;
const-string v1, "SHA-1"
const-string v2, "Hashing.sha1()"
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/MessageDigestHashFunction;-><init>(Ljava/lang/String;Ljava/lang/String;)V
sput-object v0, Lcom/google/common/hash/Hashing$Sha1Holder;->SHA_1:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,46 @@
.class Lcom/google/common/hash/Hashing$Sha256Holder;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Sha256Holder"
.end annotation
# static fields
.field public static final SHA_256:Lcom/google/common/hash/HashFunction;
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction;
const-string v1, "SHA-256"
const-string v2, "Hashing.sha256()"
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/MessageDigestHashFunction;-><init>(Ljava/lang/String;Ljava/lang/String;)V
sput-object v0, Lcom/google/common/hash/Hashing$Sha256Holder;->SHA_256:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,46 @@
.class Lcom/google/common/hash/Hashing$Sha384Holder;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Sha384Holder"
.end annotation
# static fields
.field public static final SHA_384:Lcom/google/common/hash/HashFunction;
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction;
const-string v1, "SHA-384"
const-string v2, "Hashing.sha384()"
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/MessageDigestHashFunction;-><init>(Ljava/lang/String;Ljava/lang/String;)V
sput-object v0, Lcom/google/common/hash/Hashing$Sha384Holder;->SHA_384:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,46 @@
.class Lcom/google/common/hash/Hashing$Sha512Holder;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Hashing;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Sha512Holder"
.end annotation
# static fields
.field public static final SHA_512:Lcom/google/common/hash/HashFunction;
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction;
const-string v1, "SHA-512"
const-string v2, "Hashing.sha512()"
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/MessageDigestHashFunction;-><init>(Ljava/lang/String;Ljava/lang/String;)V
sput-object v0, Lcom/google/common/hash/Hashing$Sha512Holder;->SHA_512:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,972 @@
.class public final Lcom/google/common/hash/Hashing;
.super Ljava/lang/Object;
.source "Hashing.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;,
Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;,
Lcom/google/common/hash/Hashing$ChecksumType;,
Lcom/google/common/hash/Hashing$Sha512Holder;,
Lcom/google/common/hash/Hashing$Sha384Holder;,
Lcom/google/common/hash/Hashing$Sha256Holder;,
Lcom/google/common/hash/Hashing$Sha1Holder;,
Lcom/google/common/hash/Hashing$Md5Holder;
}
.end annotation
# static fields
.field public static final GOOD_FAST_HASH_SEED:I
# direct methods
.method public static constructor <clinit>()V
.locals 2
.line 1
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
long-to-int v0, v0
sput v0, Lcom/google/common/hash/Hashing;->GOOD_FAST_HASH_SEED:I
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static adler32()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$ChecksumType;->ADLER_32:Lcom/google/common/hash/Hashing$ChecksumType;
iget-object v0, v0, Lcom/google/common/hash/Hashing$ChecksumType;->hashFunction:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static checkPositiveAndMakeMultipleOf32(I)I
.locals 2
if-lez p0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v1, "Number of bits must be positive"
.line 1
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
add-int/lit8 p0, p0, 0x1f
and-int/lit8 p0, p0, -0x20
return p0
.end method
.method public static combineOrdered(Ljava/lang/Iterable;)Lcom/google/common/hash/HashCode;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"Lcom/google/common/hash/HashCode;",
">;)",
"Lcom/google/common/hash/HashCode;"
}
.end annotation
.line 1
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const-string v2, "Must be at least 1 hash code to combine."
invoke-static {v1, v2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/hash/HashCode;
invoke-virtual {v0}, Lcom/google/common/hash/HashCode;->bits()I
move-result v0
.line 4
div-int/lit8 v0, v0, 0x8
new-array v1, v0, [B
.line 5
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/common/hash/HashCode;
.line 6
invoke-virtual {v2}, Lcom/google/common/hash/HashCode;->asBytes()[B
move-result-object v2
.line 7
array-length v3, v2
const/4 v4, 0x0
if-ne v3, v0, :cond_1
const/4 v3, 0x1
goto :goto_0
:cond_1
move v3, v4
:goto_0
const-string v5, "All hashcodes must have the same bit length."
invoke-static {v3, v5}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 8
:goto_1
array-length v3, v2
if-ge v4, v3, :cond_0
.line 9
aget-byte v3, v1, v4
mul-int/lit8 v3, v3, 0x25
aget-byte v5, v2, v4
xor-int/2addr v3, v5
int-to-byte v3, v3
aput-byte v3, v1, v4
add-int/lit8 v4, v4, 0x1
goto :goto_1
.line 10
:cond_2
invoke-static {v1}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object p0
return-object p0
.end method
.method public static combineUnordered(Ljava/lang/Iterable;)Lcom/google/common/hash/HashCode;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"Lcom/google/common/hash/HashCode;",
">;)",
"Lcom/google/common/hash/HashCode;"
}
.end annotation
.line 1
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const-string v2, "Must be at least 1 hash code to combine."
invoke-static {v1, v2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/hash/HashCode;
invoke-virtual {v0}, Lcom/google/common/hash/HashCode;->bits()I
move-result v0
div-int/lit8 v0, v0, 0x8
new-array v1, v0, [B
.line 4
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/common/hash/HashCode;
.line 5
invoke-virtual {v2}, Lcom/google/common/hash/HashCode;->asBytes()[B
move-result-object v2
.line 6
array-length v3, v2
const/4 v4, 0x0
if-ne v3, v0, :cond_1
const/4 v3, 0x1
goto :goto_0
:cond_1
move v3, v4
:goto_0
const-string v5, "All hashcodes must have the same bit length."
invoke-static {v3, v5}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 7
:goto_1
array-length v3, v2
if-ge v4, v3, :cond_0
.line 8
aget-byte v3, v1, v4
aget-byte v5, v2, v4
add-int/2addr v3, v5
int-to-byte v3, v3
aput-byte v3, v1, v4
add-int/lit8 v4, v4, 0x1
goto :goto_1
.line 9
:cond_2
invoke-static {v1}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object p0
return-object p0
.end method
.method public static varargs concatenating(Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/HashFunction;[Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 2
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 3
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 4
invoke-static {p2}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p0
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
.line 5
new-instance p0, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;
const/4 p1, 0x0
new-array p1, p1, [Lcom/google/common/hash/HashFunction;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Lcom/google/common/hash/HashFunction;
const/4 p2, 0x0
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;-><init>([Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/Hashing$1;)V
return-object p0
.end method
.method public static concatenating(Ljava/lang/Iterable;)Lcom/google/common/hash/HashFunction;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"Lcom/google/common/hash/HashFunction;",
">;)",
"Lcom/google/common/hash/HashFunction;"
}
.end annotation
.line 6
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 7
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 8
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/common/hash/HashFunction;
.line 9
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 10
:cond_0
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result p0
const/4 v1, 0x0
if-lez p0, :cond_1
const/4 p0, 0x1
goto :goto_1
:cond_1
move p0, v1
:goto_1
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v2
const-string v3, "number of hash functions (%s) must be > 0"
invoke-static {p0, v3, v2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
.line 11
new-instance p0, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;
new-array v1, v1, [Lcom/google/common/hash/HashFunction;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/HashFunction;
const/4 v1, 0x0
invoke-direct {p0, v0, v1}, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;-><init>([Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/Hashing$1;)V
return-object p0
.end method
.method public static consistentHash(JI)I
.locals 4
const/4 v0, 0x0
if-lez p2, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
move v1, v0
:goto_0
const-string v2, "buckets must be positive: %s"
.line 2
invoke-static {v1, v2, p2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
.line 3
new-instance v1, Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;
invoke-direct {v1, p0, p1}, Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;-><init>(J)V
:goto_1
add-int/lit8 p0, v0, 0x1
int-to-double p0, p0
.line 4
invoke-virtual {v1}, Lcom/google/common/hash/Hashing$LinearCongruentialGenerator;->nextDouble()D
move-result-wide v2
div-double/2addr p0, v2
double-to-int p0, p0
if-ltz p0, :cond_1
if-ge p0, p2, :cond_1
move v0, p0
goto :goto_1
:cond_1
return v0
.end method
.method public static consistentHash(Lcom/google/common/hash/HashCode;I)I
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/HashCode;->padToLong()J
move-result-wide v0
invoke-static {v0, v1, p1}, Lcom/google/common/hash/Hashing;->consistentHash(JI)I
move-result p0
return p0
.end method
.method public static crc32()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$ChecksumType;->CRC_32:Lcom/google/common/hash/Hashing$ChecksumType;
iget-object v0, v0, Lcom/google/common/hash/Hashing$ChecksumType;->hashFunction:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static crc32c()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Crc32cHashFunction;->CRC_32_C:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static farmHashFingerprint64()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/FarmHashFingerprint64;->FARMHASH_FINGERPRINT_64:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static goodFastHash(I)Lcom/google/common/hash/HashFunction;
.locals 4
.line 1
invoke-static {p0}, Lcom/google/common/hash/Hashing;->checkPositiveAndMakeMultipleOf32(I)I
move-result p0
const/16 v0, 0x20
if-ne p0, v0, :cond_0
.line 2
sget-object p0, Lcom/google/common/hash/Murmur3_32HashFunction;->GOOD_FAST_HASH_32:Lcom/google/common/hash/HashFunction;
return-object p0
:cond_0
const/16 v0, 0x80
if-gt p0, v0, :cond_1
.line 3
sget-object p0, Lcom/google/common/hash/Murmur3_128HashFunction;->GOOD_FAST_HASH_128:Lcom/google/common/hash/HashFunction;
return-object p0
:cond_1
add-int/lit8 p0, p0, 0x7f
.line 4
div-int/2addr p0, v0
.line 5
new-array v0, p0, [Lcom/google/common/hash/HashFunction;
const/4 v1, 0x0
.line 6
sget-object v2, Lcom/google/common/hash/Murmur3_128HashFunction;->GOOD_FAST_HASH_128:Lcom/google/common/hash/HashFunction;
aput-object v2, v0, v1
.line 7
sget v1, Lcom/google/common/hash/Hashing;->GOOD_FAST_HASH_SEED:I
const/4 v2, 0x1
:goto_0
if-ge v2, p0, :cond_2
const v3, 0x596f0ddf
add-int/2addr v1, v3
.line 8
invoke-static {v1}, Lcom/google/common/hash/Hashing;->murmur3_128(I)Lcom/google/common/hash/HashFunction;
move-result-object v3
aput-object v3, v0, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 9
:cond_2
new-instance p0, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;
const/4 v1, 0x0
invoke-direct {p0, v0, v1}, Lcom/google/common/hash/Hashing$ConcatenatedHashFunction;-><init>([Lcom/google/common/hash/HashFunction;Lcom/google/common/hash/Hashing$1;)V
return-object p0
.end method
.method public static hmacMd5(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MacHashFunction;
const-string v1, "hmacMd5"
invoke-static {v1, p0}, Lcom/google/common/hash/Hashing;->hmacToString(Ljava/lang/String;Ljava/security/Key;)Ljava/lang/String;
move-result-object v1
const-string v2, "HmacMD5"
invoke-direct {v0, v2, p0, v1}, Lcom/google/common/hash/MacHashFunction;-><init>(Ljava/lang/String;Ljava/security/Key;Ljava/lang/String;)V
return-object v0
.end method
.method public static hmacMd5([B)Lcom/google/common/hash/HashFunction;
.locals 2
.line 2
new-instance v0, Ljavax/crypto/spec/SecretKeySpec;
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, [B
const-string v1, "HmacMD5"
invoke-direct {v0, p0, v1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
invoke-static {v0}, Lcom/google/common/hash/Hashing;->hmacMd5(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
move-result-object p0
return-object p0
.end method
.method public static hmacSha1(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MacHashFunction;
const-string v1, "hmacSha1"
invoke-static {v1, p0}, Lcom/google/common/hash/Hashing;->hmacToString(Ljava/lang/String;Ljava/security/Key;)Ljava/lang/String;
move-result-object v1
const-string v2, "HmacSHA1"
invoke-direct {v0, v2, p0, v1}, Lcom/google/common/hash/MacHashFunction;-><init>(Ljava/lang/String;Ljava/security/Key;Ljava/lang/String;)V
return-object v0
.end method
.method public static hmacSha1([B)Lcom/google/common/hash/HashFunction;
.locals 2
.line 2
new-instance v0, Ljavax/crypto/spec/SecretKeySpec;
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, [B
const-string v1, "HmacSHA1"
invoke-direct {v0, p0, v1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
invoke-static {v0}, Lcom/google/common/hash/Hashing;->hmacSha1(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
move-result-object p0
return-object p0
.end method
.method public static hmacSha256(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MacHashFunction;
const-string v1, "hmacSha256"
invoke-static {v1, p0}, Lcom/google/common/hash/Hashing;->hmacToString(Ljava/lang/String;Ljava/security/Key;)Ljava/lang/String;
move-result-object v1
const-string v2, "HmacSHA256"
invoke-direct {v0, v2, p0, v1}, Lcom/google/common/hash/MacHashFunction;-><init>(Ljava/lang/String;Ljava/security/Key;Ljava/lang/String;)V
return-object v0
.end method
.method public static hmacSha256([B)Lcom/google/common/hash/HashFunction;
.locals 2
.line 2
new-instance v0, Ljavax/crypto/spec/SecretKeySpec;
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, [B
const-string v1, "HmacSHA256"
invoke-direct {v0, p0, v1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
invoke-static {v0}, Lcom/google/common/hash/Hashing;->hmacSha256(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
move-result-object p0
return-object p0
.end method
.method public static hmacSha512(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/MacHashFunction;
const-string v1, "hmacSha512"
invoke-static {v1, p0}, Lcom/google/common/hash/Hashing;->hmacToString(Ljava/lang/String;Ljava/security/Key;)Ljava/lang/String;
move-result-object v1
const-string v2, "HmacSHA512"
invoke-direct {v0, v2, p0, v1}, Lcom/google/common/hash/MacHashFunction;-><init>(Ljava/lang/String;Ljava/security/Key;Ljava/lang/String;)V
return-object v0
.end method
.method public static hmacSha512([B)Lcom/google/common/hash/HashFunction;
.locals 2
.line 2
new-instance v0, Ljavax/crypto/spec/SecretKeySpec;
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, [B
const-string v1, "HmacSHA512"
invoke-direct {v0, p0, v1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
invoke-static {v0}, Lcom/google/common/hash/Hashing;->hmacSha512(Ljava/security/Key;)Lcom/google/common/hash/HashFunction;
move-result-object p0
return-object p0
.end method
.method private static hmacToString(Ljava/lang/String;Ljava/security/Key;)Ljava/lang/String;
.locals 2
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object p0, v0, v1
.line 1
invoke-interface {p1}, Ljava/security/Key;->getAlgorithm()Ljava/lang/String;
move-result-object p0
const/4 v1, 0x1
aput-object p0, v0, v1
invoke-interface {p1}, Ljava/security/Key;->getFormat()Ljava/lang/String;
move-result-object p0
const/4 p1, 0x2
aput-object p0, v0, p1
const-string p0, "Hashing.%s(Key[algorithm=%s, format=%s])"
.line 2
invoke-static {p0, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static md5()Lcom/google/common/hash/HashFunction;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$Md5Holder;->MD5:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static murmur3_128()Lcom/google/common/hash/HashFunction;
.locals 1
.line 2
sget-object v0, Lcom/google/common/hash/Murmur3_128HashFunction;->MURMUR3_128:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static murmur3_128(I)Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
new-instance v0, Lcom/google/common/hash/Murmur3_128HashFunction;
invoke-direct {v0, p0}, Lcom/google/common/hash/Murmur3_128HashFunction;-><init>(I)V
return-object v0
.end method
.method public static murmur3_32()Lcom/google/common/hash/HashFunction;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 2
sget-object v0, Lcom/google/common/hash/Murmur3_32HashFunction;->MURMUR3_32:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static murmur3_32(I)Lcom/google/common/hash/HashFunction;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
new-instance v0, Lcom/google/common/hash/Murmur3_32HashFunction;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction;-><init>(IZ)V
return-object v0
.end method
.method public static murmur3_32_fixed()Lcom/google/common/hash/HashFunction;
.locals 1
.line 2
sget-object v0, Lcom/google/common/hash/Murmur3_32HashFunction;->MURMUR3_32_FIXED:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static murmur3_32_fixed(I)Lcom/google/common/hash/HashFunction;
.locals 2
.line 1
new-instance v0, Lcom/google/common/hash/Murmur3_32HashFunction;
const/4 v1, 0x1
invoke-direct {v0, p0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction;-><init>(IZ)V
return-object v0
.end method
.method public static sha1()Lcom/google/common/hash/HashFunction;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$Sha1Holder;->SHA_1:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static sha256()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$Sha256Holder;->SHA_256:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static sha384()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$Sha384Holder;->SHA_384:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static sha512()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/Hashing$Sha512Holder;->SHA_512:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static sipHash24()Lcom/google/common/hash/HashFunction;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/SipHashFunction;->SIP_HASH_24:Lcom/google/common/hash/HashFunction;
return-object v0
.end method
.method public static sipHash24(JJ)Lcom/google/common/hash/HashFunction;
.locals 8
.line 2
new-instance v7, Lcom/google/common/hash/SipHashFunction;
const/4 v1, 0x2
const/4 v2, 0x4
move-object v0, v7
move-wide v3, p0
move-wide v5, p2
invoke-direct/range {v0 .. v6}, Lcom/google/common/hash/SipHashFunction;-><init>(IIJJ)V
return-object v7
.end method
@@ -0,0 +1,156 @@
.class public final Lcom/google/common/hash/HashingInputStream;
.super Ljava/io/FilterInputStream;
.source "HashingInputStream.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
# instance fields
.field private final hasher:Lcom/google/common/hash/Hasher;
# direct methods
.method public constructor <init>(Lcom/google/common/hash/HashFunction;Ljava/io/InputStream;)V
.locals 0
.line 1
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/io/InputStream;
invoke-direct {p0, p2}, Ljava/io/FilterInputStream;-><init>(Ljava/io/InputStream;)V
.line 2
invoke-interface {p1}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/common/hash/Hasher;
iput-object p1, p0, Lcom/google/common/hash/HashingInputStream;->hasher:Lcom/google/common/hash/Hasher;
return-void
.end method
# virtual methods
.method public hash()Lcom/google/common/hash/HashCode;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashingInputStream;->hasher:Lcom/google/common/hash/Hasher;
invoke-interface {v0}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public mark(I)V
.locals 0
return-void
.end method
.method public markSupported()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public read()I
.locals 3
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0}, Ljava/io/InputStream;->read()I
move-result v0
const/4 v1, -0x1
if-eq v0, v1, :cond_0
.line 2
iget-object v1, p0, Lcom/google/common/hash/HashingInputStream;->hasher:Lcom/google/common/hash/Hasher;
int-to-byte v2, v0
invoke-interface {v1, v2}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
:cond_0
return v0
.end method
.method public read([BII)I
.locals 1
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 3
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0, p1, p2, p3}, Ljava/io/InputStream;->read([BII)I
move-result p3
const/4 v0, -0x1
if-eq p3, v0, :cond_0
.line 4
iget-object v0, p0, Lcom/google/common/hash/HashingInputStream;->hasher:Lcom/google/common/hash/Hasher;
invoke-interface {v0, p1, p2, p3}, Lcom/google/common/hash/Hasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
:cond_0
return p3
.end method
.method public reset()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/io/IOException;
const-string v1, "reset not supported"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,120 @@
.class public final Lcom/google/common/hash/HashingOutputStream;
.super Ljava/io/FilterOutputStream;
.source "HashingOutputStream.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
# instance fields
.field private final hasher:Lcom/google/common/hash/Hasher;
# direct methods
.method public constructor <init>(Lcom/google/common/hash/HashFunction;Ljava/io/OutputStream;)V
.locals 0
.line 1
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/io/OutputStream;
invoke-direct {p0, p2}, Ljava/io/FilterOutputStream;-><init>(Ljava/io/OutputStream;)V
.line 2
invoke-interface {p1}, Lcom/google/common/hash/HashFunction;->newHasher()Lcom/google/common/hash/Hasher;
move-result-object p1
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/common/hash/Hasher;
iput-object p1, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
return-void
.end method
.method public hash()Lcom/google/common/hash/HashCode;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
invoke-interface {v0}, Lcom/google/common/hash/Hasher;->hash()Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public write(I)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
int-to-byte v1, p1
invoke-interface {v0, v1}, Lcom/google/common/hash/Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
.line 2
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V
return-void
.end method
.method public write([BII)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 3
iget-object v0, p0, Lcom/google/common/hash/HashingOutputStream;->hasher:Lcom/google/common/hash/Hasher;
invoke-interface {v0, p1, p2, p3}, Lcom/google/common/hash/Hasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
.line 4
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
return-void
.end method
@@ -0,0 +1,25 @@
.class interface abstract Lcom/google/common/hash/ImmutableSupplier;
.super Ljava/lang/Object;
.source "ImmutableSupplier.java"
# interfaces
.implements Lcom/google/common/base/Supplier;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/common/base/Supplier<",
"TT;>;"
}
.end annotation
@@ -0,0 +1,58 @@
.class final Lcom/google/common/hash/Java8Compatibility;
.super Ljava/lang/Object;
.source "Java8Compatibility.java"
# annotations
.annotation build Lcom/google/common/annotations/GwtIncompatible;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static clear(Ljava/nio/Buffer;)V
.locals 0
.line 1
invoke-virtual {p0}, Ljava/nio/Buffer;->clear()Ljava/nio/Buffer;
return-void
.end method
.method public static flip(Ljava/nio/Buffer;)V
.locals 0
.line 1
invoke-virtual {p0}, Ljava/nio/Buffer;->flip()Ljava/nio/Buffer;
return-void
.end method
.method public static limit(Ljava/nio/Buffer;I)V
.locals 0
.line 1
invoke-virtual {p0, p1}, Ljava/nio/Buffer;->limit(I)Ljava/nio/Buffer;
return-void
.end method
.method public static position(Ljava/nio/Buffer;I)V
.locals 0
.line 1
invoke-virtual {p0, p1}, Ljava/nio/Buffer;->position(I)Ljava/nio/Buffer;
return-void
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/common/hash/LittleEndianByteArray$1;
.super Ljava/lang/Object;
.source "LittleEndianByteArray.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,107 @@
.class final enum Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes$1;
.super Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.source "LittleEndianByteArray.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, v0}, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;-><init>(Ljava/lang/String;ILcom/google/common/hash/LittleEndianByteArray$1;)V
return-void
.end method
# virtual methods
.method public getLongLittleEndian([BI)J
.locals 9
add-int/lit8 v0, p2, 0x7
.line 1
aget-byte v1, p1, v0
add-int/lit8 v0, p2, 0x6
aget-byte v2, p1, v0
add-int/lit8 v0, p2, 0x5
aget-byte v3, p1, v0
add-int/lit8 v0, p2, 0x4
aget-byte v4, p1, v0
add-int/lit8 v0, p2, 0x3
aget-byte v5, p1, v0
add-int/lit8 v0, p2, 0x2
aget-byte v6, p1, v0
add-int/lit8 v0, p2, 0x1
aget-byte v7, p1, v0
aget-byte v8, p1, p2
invoke-static/range {v1 .. v8}, Lcom/google/common/primitives/Longs;->fromBytes(BBBBBBBB)J
move-result-wide p1
return-wide p1
.end method
.method public putLongLittleEndian([BIJ)V
.locals 8
const-wide/16 v0, 0xff
const/4 v2, 0x0
:goto_0
const/16 v3, 0x8
if-ge v2, v3, :cond_0
add-int v4, p2, v2
and-long v5, p3, v0
mul-int/lit8 v7, v2, 0x8
shr-long/2addr v5, v7
long-to-int v5, v5
int-to-byte v5, v5
.line 1
aput-byte v5, p1, v4
shl-long/2addr v0, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,128 @@
.class abstract enum Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.super Ljava/lang/Enum;
.source "LittleEndianByteArray.java"
# interfaces
.implements Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4409
name = "JavaLittleEndianBytes"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;",
">;",
"Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.field public static final enum INSTANCE:Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.locals 3
const/4 v0, 0x1
new-array v0, v0, [Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.line 1
sget-object v1, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;->INSTANCE:Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
const/4 v2, 0x0
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes$1;
const-string v1, "INSTANCE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes$1;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;->INSTANCE:Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.line 2
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;->$values()[Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
move-result-object v0
sput-object v0, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;ILcom/google/common/hash/LittleEndianByteArray$1;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
invoke-virtual {v0}, [Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
return-object v0
.end method
@@ -0,0 +1,22 @@
.class interface abstract Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
.super Ljava/lang/Object;
.source "LittleEndianByteArray.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "LittleEndianBytes"
.end annotation
# virtual methods
.method public abstract getLongLittleEndian([BI)J
.end method
.method public abstract putLongLittleEndian([BIJ)V
.end method
@@ -0,0 +1,81 @@
.class final enum Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$1;
.super Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.source "LittleEndianByteArray.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, v0}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;-><init>(Ljava/lang/String;ILcom/google/common/hash/LittleEndianByteArray$1;)V
return-void
.end method
# virtual methods
.method public getLongLittleEndian([BI)J
.locals 5
.line 1
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$200()Lsun/misc/Unsafe;
move-result-object v0
int-to-long v1, p2
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$100()I
move-result p2
int-to-long v3, p2
add-long/2addr v1, v3
invoke-virtual {v0, p1, v1, v2}, Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J
move-result-wide p1
return-wide p1
.end method
.method public putLongLittleEndian([BIJ)V
.locals 6
.line 1
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$200()Lsun/misc/Unsafe;
move-result-object v0
int-to-long v1, p2
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$100()I
move-result p2
int-to-long v3, p2
add-long v2, v1, v3
move-object v1, p1
move-wide v4, p3
invoke-virtual/range {v0 .. v5}, Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V
return-void
.end method
@@ -0,0 +1,89 @@
.class final enum Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$2;
.super Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.source "LittleEndianByteArray.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, v0}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;-><init>(Ljava/lang/String;ILcom/google/common/hash/LittleEndianByteArray$1;)V
return-void
.end method
# virtual methods
.method public getLongLittleEndian([BI)J
.locals 5
.line 1
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$200()Lsun/misc/Unsafe;
move-result-object v0
int-to-long v1, p2
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$100()I
move-result p2
int-to-long v3, p2
add-long/2addr v1, v3
invoke-virtual {v0, p1, v1, v2}, Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J
move-result-wide p1
.line 2
invoke-static {p1, p2}, Ljava/lang/Long;->reverseBytes(J)J
move-result-wide p1
return-wide p1
.end method
.method public putLongLittleEndian([BIJ)V
.locals 6
.line 1
invoke-static {p3, p4}, Ljava/lang/Long;->reverseBytes(J)J
move-result-wide v4
.line 2
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$200()Lsun/misc/Unsafe;
move-result-object v0
int-to-long p2, p2
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->access$100()I
move-result p4
int-to-long v1, p4
add-long v2, p2, v1
move-object v1, p1
invoke-virtual/range {v0 .. v5}, Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V
return-void
.end method
@@ -0,0 +1,124 @@
.class Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$3;
.super Ljava/lang/Object;
.source "LittleEndianByteArray.java"
# interfaces
.implements Ljava/security/PrivilegedExceptionAction;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->getUnsafe()Lsun/misc/Unsafe;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/security/PrivilegedExceptionAction<",
"Lsun/misc/Unsafe;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic run()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$3;->run()Lsun/misc/Unsafe;
move-result-object v0
return-object v0
.end method
.method public run()Lsun/misc/Unsafe;
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 2
const-class v0, Lsun/misc/Unsafe;
.line 3
invoke-virtual {v0}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
aget-object v4, v1, v3
const/4 v5, 0x1
.line 4
invoke-virtual {v4, v5}, Ljava/lang/reflect/Field;->setAccessible(Z)V
const/4 v5, 0x0
.line 5
invoke-virtual {v4, v5}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
.line 6
invoke-virtual {v0, v4}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_0
.line 7
invoke-virtual {v0, v4}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lsun/misc/Unsafe;
return-object v0
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 8
:cond_1
new-instance v0, Ljava/lang/NoSuchFieldError;
const-string v1, "the Unsafe"
invoke-direct {v0, v1}, Ljava/lang/NoSuchFieldError;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,247 @@
.class abstract enum Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.super Ljava/lang/Enum;
.source "LittleEndianByteArray.java"
# interfaces
.implements Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4409
name = "UnsafeByteArray"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;",
">;",
"Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.field private static final BYTE_ARRAY_BASE_OFFSET:I
.field public static final enum UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.field public static final enum UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.field private static final theUnsafe:Lsun/misc/Unsafe;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.locals 3
const/4 v0, 0x2
new-array v0, v0, [Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 1
sget-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
const/4 v2, 0x0
aput-object v1, v0, v2
sget-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
const/4 v2, 0x1
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 4
.line 1
const-class v0, [B
new-instance v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$1;
const-string v2, "UNSAFE_LITTLE_ENDIAN"
const/4 v3, 0x0
invoke-direct {v1, v2, v3}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$1;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 2
new-instance v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$2;
const-string v2, "UNSAFE_BIG_ENDIAN"
const/4 v3, 0x1
invoke-direct {v1, v2, v3}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$2;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 3
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$values()[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
move-result-object v1
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 4
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v1
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->theUnsafe:Lsun/misc/Unsafe;
.line 5
invoke-virtual {v1, v0}, Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I
move-result v2
sput v2, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->BYTE_ARRAY_BASE_OFFSET:I
.line 6
invoke-virtual {v1, v0}, Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I
move-result v0
if-ne v0, v3, :cond_0
return-void
.line 7
:cond_0
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;ILcom/google/common/hash/LittleEndianByteArray$1;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static synthetic access$100()I
.locals 1
.line 1
sget v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->BYTE_ARRAY_BASE_OFFSET:I
return v0
.end method
.method public static synthetic access$200()Lsun/misc/Unsafe;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->theUnsafe:Lsun/misc/Unsafe;
return-object v0
.end method
.method private static getUnsafe()Lsun/misc/Unsafe;
.locals 3
.line 1
:try_start_0
invoke-static {}, Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v0
:try_end_0
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
.line 2
:catch_0
:try_start_1
new-instance v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$3;
invoke-direct {v0}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$3;-><init>()V
invoke-static {v0}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lsun/misc/Unsafe;
:try_end_1
.catch Ljava/security/PrivilegedActionException; {:try_start_1 .. :try_end_1} :catch_1
return-object v0
:catch_1
move-exception v0
.line 3
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/security/PrivilegedActionException;->getCause()Ljava/lang/Throwable;
move-result-object v0
const-string v2, "Could not initialize intrinsics"
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.locals 1
.line 1
const-class v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
invoke-virtual {v0}, [Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
return-object v0
.end method
@@ -0,0 +1,207 @@
.class final Lcom/google/common/hash/LittleEndianByteArray;
.super Ljava/lang/Object;
.source "LittleEndianByteArray.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;,
Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;,
Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
}
.end annotation
# static fields
.field public static final synthetic $assertionsDisabled:Z
.field private static final byteArray:Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;->INSTANCE:Lcom/google/common/hash/LittleEndianByteArray$JavaLittleEndianBytes;
:try_start_0
const-string v1, "os.arch"
.line 2
invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "amd64"
.line 3
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
.line 4
invoke-static {}, Ljava/nio/ByteOrder;->nativeOrder()Ljava/nio/ByteOrder;
move-result-object v1
sget-object v2, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 5
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
goto :goto_0
.line 6
:cond_0
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 7
:catchall_0
:cond_1
:goto_0
sput-object v0, Lcom/google/common/hash/LittleEndianByteArray;->byteArray:Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static load32([BI)I
.locals 2
.line 1
aget-byte v0, p0, p1
and-int/lit16 v0, v0, 0xff
add-int/lit8 v1, p1, 0x1
aget-byte v1, p0, v1
and-int/lit16 v1, v1, 0xff
shl-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
add-int/lit8 v1, p1, 0x2
aget-byte v1, p0, v1
and-int/lit16 v1, v1, 0xff
shl-int/lit8 v1, v1, 0x10
or-int/2addr v0, v1
add-int/lit8 p1, p1, 0x3
aget-byte p0, p0, p1
and-int/lit16 p0, p0, 0xff
shl-int/lit8 p0, p0, 0x18
or-int/2addr p0, v0
return p0
.end method
.method public static load64([BI)J
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray;->byteArray:Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
invoke-interface {v0, p0, p1}, Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;->getLongLittleEndian([BI)J
move-result-wide p0
return-wide p0
.end method
.method public static load64Safely([BII)J
.locals 7
const/16 v0, 0x8
.line 1
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
move-result p2
const-wide/16 v0, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, p2, :cond_0
add-int v3, p1, v2
.line 2
aget-byte v3, p0, v3
int-to-long v3, v3
const-wide/16 v5, 0xff
and-long/2addr v3, v5
mul-int/lit8 v5, v2, 0x8
shl-long/2addr v3, v5
or-long/2addr v0, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-wide v0
.end method
.method public static store64([BIJ)V
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray;->byteArray:Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
invoke-interface {v0, p0, p1, p2, p3}, Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;->putLongLittleEndian([BIJ)V
return-void
.end method
.method public static usingUnsafe()Z
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray;->byteArray:Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
instance-of v0, v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
return v0
.end method
@@ -0,0 +1,19 @@
.class interface abstract Lcom/google/common/hash/LongAddable;
.super Ljava/lang/Object;
.source "LongAddable.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
# virtual methods
.method public abstract add(J)V
.end method
.method public abstract increment()V
.end method
.method public abstract sum()J
.end method
@@ -0,0 +1,61 @@
.class Lcom/google/common/hash/LongAddables$1;
.super Ljava/lang/Object;
.source "LongAddables.java"
# interfaces
.implements Lcom/google/common/base/Supplier;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LongAddables;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/common/base/Supplier<",
"Lcom/google/common/hash/LongAddable;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public get()Lcom/google/common/hash/LongAddable;
.locals 1
.line 2
new-instance v0, Lcom/google/common/hash/LongAdder;
invoke-direct {v0}, Lcom/google/common/hash/LongAdder;-><init>()V
return-object v0
.end method
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LongAddables$1;->get()Lcom/google/common/hash/LongAddable;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,63 @@
.class Lcom/google/common/hash/LongAddables$2;
.super Ljava/lang/Object;
.source "LongAddables.java"
# interfaces
.implements Lcom/google/common/base/Supplier;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LongAddables;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/common/base/Supplier<",
"Lcom/google/common/hash/LongAddable;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public get()Lcom/google/common/hash/LongAddable;
.locals 2
.line 2
new-instance v0, Lcom/google/common/hash/LongAddables$PureJavaLongAddable;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/google/common/hash/LongAddables$PureJavaLongAddable;-><init>(Lcom/google/common/hash/LongAddables$1;)V
return-object v0
.end method
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LongAddables$2;->get()Lcom/google/common/hash/LongAddable;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,68 @@
.class final Lcom/google/common/hash/LongAddables$PureJavaLongAddable;
.super Ljava/util/concurrent/atomic/AtomicLong;
.source "LongAddables.java"
# interfaces
.implements Lcom/google/common/hash/LongAddable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LongAddables;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "PureJavaLongAddable"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/common/hash/LongAddables$1;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/google/common/hash/LongAddables$PureJavaLongAddable;-><init>()V
return-void
.end method
# virtual methods
.method public add(J)V
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicLong;->getAndAdd(J)J
return-void
.end method
.method public increment()V
.locals 0
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->getAndIncrement()J
return-void
.end method
.method public sum()J
.locals 2
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
move-result-wide v0
return-wide v0
.end method
@@ -0,0 +1,83 @@
.class final Lcom/google/common/hash/LongAddables;
.super Ljava/lang/Object;
.source "LongAddables.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/LongAddables$PureJavaLongAddable;
}
.end annotation
# static fields
.field private static final SUPPLIER:Lcom/google/common/base/Supplier;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/base/Supplier<",
"Lcom/google/common/hash/LongAddable;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
:try_start_0
new-instance v0, Lcom/google/common/hash/LongAdder;
invoke-direct {v0}, Lcom/google/common/hash/LongAdder;-><init>()V
.line 2
new-instance v0, Lcom/google/common/hash/LongAddables$1;
invoke-direct {v0}, Lcom/google/common/hash/LongAddables$1;-><init>()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
.line 3
:catchall_0
new-instance v0, Lcom/google/common/hash/LongAddables$2;
invoke-direct {v0}, Lcom/google/common/hash/LongAddables$2;-><init>()V
.line 4
:goto_0
sput-object v0, Lcom/google/common/hash/LongAddables;->SUPPLIER:Lcom/google/common/base/Supplier;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static create()Lcom/google/common/hash/LongAddable;
.locals 1
.line 1
sget-object v0, Lcom/google/common/hash/LongAddables;->SUPPLIER:Lcom/google/common/base/Supplier;
invoke-interface {v0}, Lcom/google/common/base/Supplier;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/hash/LongAddable;
return-object v0
.end method
@@ -0,0 +1,340 @@
.class final Lcom/google/common/hash/LongAdder;
.super Lcom/google/common/hash/Striped64;
.source "LongAdder.java"
# interfaces
.implements Ljava/io/Serializable;
.implements Lcom/google/common/hash/LongAddable;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x6499de12a37d0a3dL
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/Striped64;-><init>()V
return-void
.end method
.method private readObject(Ljava/io/ObjectInputStream;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V
const/4 v0, 0x0
.line 2
iput v0, p0, Lcom/google/common/hash/Striped64;->busy:I
const/4 v0, 0x0
.line 3
iput-object v0, p0, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
.line 4
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readLong()J
move-result-wide v0
iput-wide v0, p0, Lcom/google/common/hash/Striped64;->base:J
return-void
.end method
.method private writeObject(Ljava/io/ObjectOutputStream;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/io/ObjectOutputStream;->defaultWriteObject()V
.line 2
invoke-virtual {p0}, Lcom/google/common/hash/LongAdder;->sum()J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Ljava/io/ObjectOutputStream;->writeLong(J)V
return-void
.end method
# virtual methods
.method public add(J)V
.locals 6
.line 1
iget-object v0, p0, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-nez v0, :cond_0
iget-wide v1, p0, Lcom/google/common/hash/Striped64;->base:J
add-long v3, v1, p1
invoke-virtual {p0, v1, v2, v3, v4}, Lcom/google/common/hash/Striped64;->casBase(JJ)Z
move-result v1
if-nez v1, :cond_2
.line 2
:cond_0
sget-object v1, Lcom/google/common/hash/Striped64;->threadHashCode:Ljava/lang/ThreadLocal;
invoke-virtual {v1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, [I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-eqz v0, :cond_1
array-length v3, v0
if-lt v3, v2, :cond_1
sub-int/2addr v3, v2
const/4 v4, 0x0
aget v4, v1, v4
and-int/2addr v3, v4
aget-object v0, v0, v3
if-eqz v0, :cond_1
iget-wide v2, v0, Lcom/google/common/hash/Striped64$Cell;->value:J
add-long v4, v2, p1
.line 3
invoke-virtual {v0, v2, v3, v4, v5}, Lcom/google/common/hash/Striped64$Cell;->cas(JJ)Z
move-result v2
if-nez v2, :cond_2
:cond_1
invoke-virtual {p0, p1, p2, v1, v2}, Lcom/google/common/hash/Striped64;->retryUpdate(J[IZ)V
:cond_2
return-void
.end method
.method public decrement()V
.locals 2
const-wide/16 v0, -0x1
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/common/hash/LongAdder;->add(J)V
return-void
.end method
.method public doubleValue()D
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LongAdder;->sum()J
move-result-wide v0
long-to-double v0, v0
return-wide v0
.end method
.method public floatValue()F
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LongAdder;->sum()J
move-result-wide v0
long-to-float v0, v0
return v0
.end method
.method public final fn(JJ)J
.locals 0
add-long/2addr p1, p3
return-wide p1
.end method
.method public increment()V
.locals 2
const-wide/16 v0, 0x1
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/common/hash/LongAdder;->add(J)V
return-void
.end method
.method public intValue()I
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LongAdder;->sum()J
move-result-wide v0
long-to-int v0, v0
return v0
.end method
.method public longValue()J
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LongAdder;->sum()J
move-result-wide v0
return-wide v0
.end method
.method public reset()V
.locals 2
const-wide/16 v0, 0x0
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/common/hash/Striped64;->internalReset(J)V
return-void
.end method
.method public sum()J
.locals 7
.line 1
iget-wide v0, p0, Lcom/google/common/hash/Striped64;->base:J
.line 2
iget-object v2, p0, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-eqz v2, :cond_1
.line 3
array-length v3, v2
const/4 v4, 0x0
:goto_0
if-ge v4, v3, :cond_1
.line 4
aget-object v5, v2, v4
if-eqz v5, :cond_0
.line 5
iget-wide v5, v5, Lcom/google/common/hash/Striped64$Cell;->value:J
add-long/2addr v0, v5
:cond_0
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_1
return-wide v0
.end method
.method public sumThenReset()J
.locals 10
.line 1
iget-wide v0, p0, Lcom/google/common/hash/Striped64;->base:J
.line 2
iget-object v2, p0, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
const-wide/16 v3, 0x0
.line 3
iput-wide v3, p0, Lcom/google/common/hash/Striped64;->base:J
if-eqz v2, :cond_1
.line 4
array-length v5, v2
const/4 v6, 0x0
:goto_0
if-ge v6, v5, :cond_1
.line 5
aget-object v7, v2, v6
if-eqz v7, :cond_0
.line 6
iget-wide v8, v7, Lcom/google/common/hash/Striped64$Cell;->value:J
add-long/2addr v0, v8
.line 7
iput-wide v3, v7, Lcom/google/common/hash/Striped64$Cell;->value:J
:cond_0
add-int/lit8 v6, v6, 0x1
goto :goto_0
:cond_1
return-wide v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/LongAdder;->sum()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/common/hash/MacHashFunction$1;
.super Ljava/lang/Object;
.source "MacHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/MacHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,144 @@
.class final Lcom/google/common/hash/MacHashFunction$MacHasher;
.super Lcom/google/common/hash/AbstractByteHasher;
.source "MacHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/MacHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "MacHasher"
.end annotation
# instance fields
.field private done:Z
.field private final mac:Ljavax/crypto/Mac;
# direct methods
.method private constructor <init>(Ljavax/crypto/Mac;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/google/common/hash/AbstractByteHasher;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->mac:Ljavax/crypto/Mac;
return-void
.end method
.method public synthetic constructor <init>(Ljavax/crypto/Mac;Lcom/google/common/hash/MacHashFunction$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/google/common/hash/MacHashFunction$MacHasher;-><init>(Ljavax/crypto/Mac;)V
return-void
.end method
.method private checkNotDone()V
.locals 2
.line 1
iget-boolean v0, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->done:Z
xor-int/lit8 v0, v0, 0x1
const-string v1, "Cannot re-use a Hasher after calling hash() on it"
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/Object;)V
return-void
.end method
# virtual methods
.method public hash()Lcom/google/common/hash/HashCode;
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/common/hash/MacHashFunction$MacHasher;->checkNotDone()V
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->done:Z
.line 3
iget-object v0, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->mac:Ljavax/crypto/Mac;
invoke-virtual {v0}, Ljavax/crypto/Mac;->doFinal()[B
move-result-object v0
invoke-static {v0}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public update(B)V
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/common/hash/MacHashFunction$MacHasher;->checkNotDone()V
.line 2
iget-object v0, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->mac:Ljavax/crypto/Mac;
invoke-virtual {v0, p1}, Ljavax/crypto/Mac;->update(B)V
return-void
.end method
.method public update(Ljava/nio/ByteBuffer;)V
.locals 1
.line 7
invoke-direct {p0}, Lcom/google/common/hash/MacHashFunction$MacHasher;->checkNotDone()V
.line 8
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 9
iget-object v0, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->mac:Ljavax/crypto/Mac;
invoke-virtual {v0, p1}, Ljavax/crypto/Mac;->update(Ljava/nio/ByteBuffer;)V
return-void
.end method
.method public update([B)V
.locals 1
.line 3
invoke-direct {p0}, Lcom/google/common/hash/MacHashFunction$MacHasher;->checkNotDone()V
.line 4
iget-object v0, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->mac:Ljavax/crypto/Mac;
invoke-virtual {v0, p1}, Ljavax/crypto/Mac;->update([B)V
return-void
.end method
.method public update([BII)V
.locals 1
.line 5
invoke-direct {p0}, Lcom/google/common/hash/MacHashFunction$MacHasher;->checkNotDone()V
.line 6
iget-object v0, p0, Lcom/google/common/hash/MacHashFunction$MacHasher;->mac:Ljavax/crypto/Mac;
invoke-virtual {v0, p1, p2, p3}, Ljavax/crypto/Mac;->update([BII)V
return-void
.end method
@@ -0,0 +1,208 @@
.class final Lcom/google/common/hash/MacHashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "MacHashFunction.java"
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/MacHashFunction$MacHasher;
}
.end annotation
# instance fields
.field private final bits:I
.field private final key:Ljava/security/Key;
.field private final prototype:Ljavax/crypto/Mac;
.field private final supportsClone:Z
.field private final toString:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/security/Key;Ljava/lang/String;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
.line 2
invoke-static {p1, p2}, Lcom/google/common/hash/MacHashFunction;->getMac(Ljava/lang/String;Ljava/security/Key;)Ljavax/crypto/Mac;
move-result-object p1
iput-object p1, p0, Lcom/google/common/hash/MacHashFunction;->prototype:Ljavax/crypto/Mac;
.line 3
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/security/Key;
iput-object p2, p0, Lcom/google/common/hash/MacHashFunction;->key:Ljava/security/Key;
.line 4
invoke-static {p3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/String;
iput-object p2, p0, Lcom/google/common/hash/MacHashFunction;->toString:Ljava/lang/String;
.line 5
invoke-virtual {p1}, Ljavax/crypto/Mac;->getMacLength()I
move-result p2
mul-int/lit8 p2, p2, 0x8
iput p2, p0, Lcom/google/common/hash/MacHashFunction;->bits:I
.line 6
invoke-static {p1}, Lcom/google/common/hash/MacHashFunction;->supportsClone(Ljavax/crypto/Mac;)Z
move-result p1
iput-boolean p1, p0, Lcom/google/common/hash/MacHashFunction;->supportsClone:Z
return-void
.end method
.method private static getMac(Ljava/lang/String;Ljava/security/Key;)Ljavax/crypto/Mac;
.locals 0
.line 1
:try_start_0
invoke-static {p0}, Ljavax/crypto/Mac;->getInstance(Ljava/lang/String;)Ljavax/crypto/Mac;
move-result-object p0
.line 2
invoke-virtual {p0, p1}, Ljavax/crypto/Mac;->init(Ljava/security/Key;)V
:try_end_0
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/security/InvalidKeyException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
.line 3
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
throw p1
:catch_1
move-exception p0
.line 4
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw p1
.end method
.method private static supportsClone(Ljavax/crypto/Mac;)Z
.locals 0
.line 1
:try_start_0
invoke-virtual {p0}, Ljavax/crypto/Mac;->clone()Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0
const/4 p0, 0x1
return p0
:catch_0
const/4 p0, 0x0
return p0
.end method
# virtual methods
.method public bits()I
.locals 1
.line 1
iget v0, p0, Lcom/google/common/hash/MacHashFunction;->bits:I
return v0
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 4
.line 1
iget-boolean v0, p0, Lcom/google/common/hash/MacHashFunction;->supportsClone:Z
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
:try_start_0
new-instance v0, Lcom/google/common/hash/MacHashFunction$MacHasher;
iget-object v2, p0, Lcom/google/common/hash/MacHashFunction;->prototype:Ljavax/crypto/Mac;
invoke-virtual {v2}, Ljavax/crypto/Mac;->clone()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljavax/crypto/Mac;
invoke-direct {v0, v2, v1}, Lcom/google/common/hash/MacHashFunction$MacHasher;-><init>(Ljavax/crypto/Mac;Lcom/google/common/hash/MacHashFunction$1;)V
:try_end_0
.catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
.line 3
:catch_0
:cond_0
new-instance v0, Lcom/google/common/hash/MacHashFunction$MacHasher;
iget-object v2, p0, Lcom/google/common/hash/MacHashFunction;->prototype:Ljavax/crypto/Mac;
invoke-virtual {v2}, Ljavax/crypto/Mac;->getAlgorithm()Ljava/lang/String;
move-result-object v2
iget-object v3, p0, Lcom/google/common/hash/MacHashFunction;->key:Ljava/security/Key;
invoke-static {v2, v3}, Lcom/google/common/hash/MacHashFunction;->getMac(Ljava/lang/String;Ljava/security/Key;)Ljavax/crypto/Mac;
move-result-object v2
invoke-direct {v0, v2, v1}, Lcom/google/common/hash/MacHashFunction$MacHasher;-><init>(Ljavax/crypto/Mac;Lcom/google/common/hash/MacHashFunction$1;)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/MacHashFunction;->toString:Ljava/lang/String;
return-object v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/common/hash/MessageDigestHashFunction$1;
.super Ljava/lang/Object;
.source "MessageDigestHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/MessageDigestHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,164 @@
.class final Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;
.super Lcom/google/common/hash/AbstractByteHasher;
.source "MessageDigestHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/MessageDigestHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "MessageDigestHasher"
.end annotation
# instance fields
.field private final bytes:I
.field private final digest:Ljava/security/MessageDigest;
.field private done:Z
# direct methods
.method private constructor <init>(Ljava/security/MessageDigest;I)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/google/common/hash/AbstractByteHasher;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->digest:Ljava/security/MessageDigest;
.line 4
iput p2, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->bytes:I
return-void
.end method
.method public synthetic constructor <init>(Ljava/security/MessageDigest;ILcom/google/common/hash/MessageDigestHashFunction$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;-><init>(Ljava/security/MessageDigest;I)V
return-void
.end method
.method private checkNotDone()V
.locals 2
.line 1
iget-boolean v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->done:Z
xor-int/lit8 v0, v0, 0x1
const-string v1, "Cannot re-use a Hasher after calling hash() on it"
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkState(ZLjava/lang/Object;)V
return-void
.end method
# virtual methods
.method public hash()Lcom/google/common/hash/HashCode;
.locals 2
.line 1
invoke-direct {p0}, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->checkNotDone()V
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->done:Z
.line 3
iget v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->bytes:I
iget-object v1, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->digest:Ljava/security/MessageDigest;
invoke-virtual {v1}, Ljava/security/MessageDigest;->getDigestLength()I
move-result v1
if-ne v0, v1, :cond_0
.line 4
iget-object v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->digest:Ljava/security/MessageDigest;
invoke-virtual {v0}, Ljava/security/MessageDigest;->digest()[B
move-result-object v0
invoke-static {v0}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object v0
goto :goto_0
.line 5
:cond_0
iget-object v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->digest:Ljava/security/MessageDigest;
invoke-virtual {v0}, Ljava/security/MessageDigest;->digest()[B
move-result-object v0
iget v1, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->bytes:I
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([BI)[B
move-result-object v0
invoke-static {v0}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object v0
:goto_0
return-object v0
.end method
.method public update(B)V
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->checkNotDone()V
.line 2
iget-object v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->digest:Ljava/security/MessageDigest;
invoke-virtual {v0, p1}, Ljava/security/MessageDigest;->update(B)V
return-void
.end method
.method public update(Ljava/nio/ByteBuffer;)V
.locals 1
.line 5
invoke-direct {p0}, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->checkNotDone()V
.line 6
iget-object v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->digest:Ljava/security/MessageDigest;
invoke-virtual {v0, p1}, Ljava/security/MessageDigest;->update(Ljava/nio/ByteBuffer;)V
return-void
.end method
.method public update([BII)V
.locals 1
.line 3
invoke-direct {p0}, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->checkNotDone()V
.line 4
iget-object v0, p0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;->digest:Ljava/security/MessageDigest;
invoke-virtual {v0, p1, p2, p3}, Ljava/security/MessageDigest;->update([BII)V
return-void
.end method
@@ -0,0 +1,75 @@
.class final Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;
.super Ljava/lang/Object;
.source "MessageDigestHashFunction.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/MessageDigestHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SerializedForm"
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field private final algorithmName:Ljava/lang/String;
.field private final bytes:I
.field private final toString:Ljava/lang/String;
# direct methods
.method private constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
.locals 0
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;->algorithmName:Ljava/lang/String;
.line 4
iput p2, p0, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;->bytes:I
.line 5
iput-object p3, p0, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;->toString:Ljava/lang/String;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;ILjava/lang/String;Lcom/google/common/hash/MessageDigestHashFunction$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;-><init>(Ljava/lang/String;ILjava/lang/String;)V
return-void
.end method
.method private readResolve()Ljava/lang/Object;
.locals 4
.line 1
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction;
iget-object v1, p0, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;->algorithmName:Ljava/lang/String;
iget v2, p0, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;->bytes:I
iget-object v3, p0, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;->toString:Ljava/lang/String;
invoke-direct {v0, v1, v2, v3}, Lcom/google/common/hash/MessageDigestHashFunction;-><init>(Ljava/lang/String;ILjava/lang/String;)V
return-object v0
.end method
@@ -0,0 +1,271 @@
.class final Lcom/google/common/hash/MessageDigestHashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "MessageDigestHashFunction.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;,
Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;
}
.end annotation
# instance fields
.field private final bytes:I
.field private final prototype:Ljava/security/MessageDigest;
.field private final supportsClone:Z
.field private final toString:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
.locals 2
.line 6
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
.line 7
invoke-static {p3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p3
check-cast p3, Ljava/lang/String;
iput-object p3, p0, Lcom/google/common/hash/MessageDigestHashFunction;->toString:Ljava/lang/String;
.line 8
invoke-static {p1}, Lcom/google/common/hash/MessageDigestHashFunction;->getMessageDigest(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object p1
iput-object p1, p0, Lcom/google/common/hash/MessageDigestHashFunction;->prototype:Ljava/security/MessageDigest;
.line 9
invoke-virtual {p1}, Ljava/security/MessageDigest;->getDigestLength()I
move-result p3
const/4 v0, 0x4
if-lt p2, v0, :cond_0
if-gt p2, p3, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v1, "bytes (%s) must be >= 4 and < %s"
.line 10
invoke-static {v0, v1, p2, p3}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;II)V
.line 11
iput p2, p0, Lcom/google/common/hash/MessageDigestHashFunction;->bytes:I
.line 12
invoke-static {p1}, Lcom/google/common/hash/MessageDigestHashFunction;->supportsClone(Ljava/security/MessageDigest;)Z
move-result p1
iput-boolean p1, p0, Lcom/google/common/hash/MessageDigestHashFunction;->supportsClone:Z
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/hash/MessageDigestHashFunction;->getMessageDigest(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object p1
iput-object p1, p0, Lcom/google/common/hash/MessageDigestHashFunction;->prototype:Ljava/security/MessageDigest;
.line 3
invoke-virtual {p1}, Ljava/security/MessageDigest;->getDigestLength()I
move-result v0
iput v0, p0, Lcom/google/common/hash/MessageDigestHashFunction;->bytes:I
.line 4
invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/String;
iput-object p2, p0, Lcom/google/common/hash/MessageDigestHashFunction;->toString:Ljava/lang/String;
.line 5
invoke-static {p1}, Lcom/google/common/hash/MessageDigestHashFunction;->supportsClone(Ljava/security/MessageDigest;)Z
move-result p1
iput-boolean p1, p0, Lcom/google/common/hash/MessageDigestHashFunction;->supportsClone:Z
return-void
.end method
.method private static getMessageDigest(Ljava/lang/String;)Ljava/security/MessageDigest;
.locals 1
.line 1
:try_start_0
invoke-static {p0}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object p0
:try_end_0
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
.line 2
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
.end method
.method private static supportsClone(Ljava/security/MessageDigest;)Z
.locals 0
.line 1
:try_start_0
invoke-virtual {p0}, Ljava/security/MessageDigest;->clone()Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0
const/4 p0, 0x1
return p0
:catch_0
const/4 p0, 0x0
return p0
.end method
# virtual methods
.method public bits()I
.locals 1
.line 1
iget v0, p0, Lcom/google/common/hash/MessageDigestHashFunction;->bytes:I
mul-int/lit8 v0, v0, 0x8
return v0
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 4
.line 1
iget-boolean v0, p0, Lcom/google/common/hash/MessageDigestHashFunction;->supportsClone:Z
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
:try_start_0
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;
iget-object v2, p0, Lcom/google/common/hash/MessageDigestHashFunction;->prototype:Ljava/security/MessageDigest;
invoke-virtual {v2}, Ljava/security/MessageDigest;->clone()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/security/MessageDigest;
iget v3, p0, Lcom/google/common/hash/MessageDigestHashFunction;->bytes:I
invoke-direct {v0, v2, v3, v1}, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;-><init>(Ljava/security/MessageDigest;ILcom/google/common/hash/MessageDigestHashFunction$1;)V
:try_end_0
.catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
.line 3
:catch_0
:cond_0
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;
iget-object v2, p0, Lcom/google/common/hash/MessageDigestHashFunction;->prototype:Ljava/security/MessageDigest;
invoke-virtual {v2}, Ljava/security/MessageDigest;->getAlgorithm()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/google/common/hash/MessageDigestHashFunction;->getMessageDigest(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object v2
iget v3, p0, Lcom/google/common/hash/MessageDigestHashFunction;->bytes:I
invoke-direct {v0, v2, v3, v1}, Lcom/google/common/hash/MessageDigestHashFunction$MessageDigestHasher;-><init>(Ljava/security/MessageDigest;ILcom/google/common/hash/MessageDigestHashFunction$1;)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/hash/MessageDigestHashFunction;->toString:Ljava/lang/String;
return-object v0
.end method
.method public writeReplace()Ljava/lang/Object;
.locals 5
.line 1
new-instance v0, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;
iget-object v1, p0, Lcom/google/common/hash/MessageDigestHashFunction;->prototype:Ljava/security/MessageDigest;
invoke-virtual {v1}, Ljava/security/MessageDigest;->getAlgorithm()Ljava/lang/String;
move-result-object v1
iget v2, p0, Lcom/google/common/hash/MessageDigestHashFunction;->bytes:I
iget-object v3, p0, Lcom/google/common/hash/MessageDigestHashFunction;->toString:Ljava/lang/String;
const/4 v4, 0x0
invoke-direct {v0, v1, v2, v3, v4}, Lcom/google/common/hash/MessageDigestHashFunction$SerializedForm;-><init>(Ljava/lang/String;ILjava/lang/String;Lcom/google/common/hash/MessageDigestHashFunction$1;)V
return-object v0
.end method
@@ -0,0 +1,750 @@
.class final Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;
.super Lcom/google/common/hash/AbstractStreamingHasher;
.source "Murmur3_128HashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Murmur3_128HashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Murmur3_128Hasher"
.end annotation
# static fields
.field private static final C1:J = -0x783c846eeebdac2bL
.field private static final C2:J = 0x4cf5ad432745937fL
.field private static final CHUNK_SIZE:I = 0x10
# instance fields
.field private h1:J
.field private h2:J
.field private length:I
# direct methods
.method public constructor <init>(I)V
.locals 2
const/16 v0, 0x10
.line 1
invoke-direct {p0, v0}, Lcom/google/common/hash/AbstractStreamingHasher;-><init>(I)V
int-to-long v0, p1
.line 2
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
.line 3
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
const/4 p1, 0x0
.line 4
iput p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->length:I
return-void
.end method
.method private bmix64(JJ)V
.locals 6
.line 1
iget-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
invoke-static {p1, p2}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->mixK1(J)J
move-result-wide p1
xor-long/2addr p1, v0
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
const/16 v0, 0x1b
.line 2
invoke-static {p1, p2, v0}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide p1
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
.line 3
iget-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
add-long/2addr p1, v0
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
const-wide/16 v2, 0x5
mul-long/2addr p1, v2
const-wide/32 v4, 0x52dce729
add-long/2addr p1, v4
.line 4
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
.line 5
invoke-static {p3, p4}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->mixK2(J)J
move-result-wide p1
xor-long/2addr p1, v0
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
const/16 p3, 0x1f
.line 6
invoke-static {p1, p2, p3}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide p1
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
.line 7
iget-wide p3, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
add-long/2addr p1, p3
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
mul-long/2addr p1, v2
const-wide/32 p3, 0x38495ab5
add-long/2addr p1, p3
.line 8
iput-wide p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
return-void
.end method
.method private static fmix64(J)J
.locals 3
const/16 v0, 0x21
ushr-long v1, p0, v0
xor-long/2addr p0, v1
const-wide v1, -0xae502812aa7333L
mul-long/2addr p0, v1
ushr-long v1, p0, v0
xor-long/2addr p0, v1
const-wide v1, -0x3b314601e57a13adL # -2.902039044684214E23
mul-long/2addr p0, v1
ushr-long v0, p0, v0
xor-long/2addr p0, v0
return-wide p0
.end method
.method private static mixK1(J)J
.locals 2
const-wide v0, -0x783c846eeebdac2bL
mul-long/2addr p0, v0
const/16 v0, 0x1f
.line 1
invoke-static {p0, p1, v0}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide p0
const-wide v0, 0x4cf5ad432745937fL # 5.573325460219186E62
mul-long/2addr p0, v0
return-wide p0
.end method
.method private static mixK2(J)J
.locals 2
const-wide v0, 0x4cf5ad432745937fL # 5.573325460219186E62
mul-long/2addr p0, v0
const/16 v0, 0x21
.line 1
invoke-static {p0, p1, v0}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide p0
const-wide v0, -0x783c846eeebdac2bL
mul-long/2addr p0, v0
return-wide p0
.end method
# virtual methods
.method public makeHash()Lcom/google/common/hash/HashCode;
.locals 7
.line 1
iget-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
iget v2, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->length:I
int-to-long v3, v2
xor-long/2addr v0, v3
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
.line 2
iget-wide v3, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
int-to-long v5, v2
xor-long v2, v3, v5
iput-wide v2, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
add-long/2addr v0, v2
.line 3
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
add-long/2addr v2, v0
.line 4
iput-wide v2, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
.line 5
invoke-static {v0, v1}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->fmix64(J)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
.line 6
iget-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
invoke-static {v0, v1}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->fmix64(J)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
.line 7
iget-wide v2, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
add-long/2addr v2, v0
iput-wide v2, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
add-long/2addr v0, v2
.line 8
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
const/16 v0, 0x10
new-array v0, v0, [B
.line 9
invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
move-result-object v0
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
.line 10
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object v0
iget-wide v1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
.line 11
invoke-virtual {v0, v1, v2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
move-result-object v0
iget-wide v1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
.line 12
invoke-virtual {v0, v1, v2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
move-result-object v0
.line 13
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
move-result-object v0
.line 14
invoke-static {v0}, Lcom/google/common/hash/HashCode;->fromBytesNoCopy([B)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public process(Ljava/nio/ByteBuffer;)V
.locals 4
.line 1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getLong()J
move-result-wide v0
.line 2
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getLong()J
move-result-wide v2
.line 3
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->bmix64(JJ)V
.line 4
iget p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->length:I
add-int/lit8 p1, p1, 0x10
iput p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->length:I
return-void
.end method
.method public processRemaining(Ljava/nio/ByteBuffer;)V
.locals 11
.line 1
iget v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->length:I
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v1
add-int/2addr v1, v0
iput v1, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->length:I
.line 2
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v0
const/16 v1, 0x30
const/16 v2, 0x28
const/16 v3, 0x20
const/16 v4, 0x18
const/16 v5, 0x10
const-wide/16 v6, 0x0
const/16 v8, 0x8
packed-switch v0, :pswitch_data_0
.line 3
new-instance p1, Ljava/lang/AssertionError;
const-string v0, "Should never get here."
invoke-direct {p1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p1
:pswitch_0
const/16 v0, 0xe
.line 4
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->get(I)B
move-result v0
invoke-static {v0}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v0
int-to-long v9, v0
shl-long v0, v9, v1
xor-long/2addr v0, v6
goto :goto_0
:pswitch_1
move-wide v0, v6
:goto_0
const/16 v9, 0xd
.line 5
invoke-virtual {p1, v9}, Ljava/nio/ByteBuffer;->get(I)B
move-result v9
invoke-static {v9}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v9
int-to-long v9, v9
shl-long/2addr v9, v2
xor-long/2addr v0, v9
goto :goto_1
:pswitch_2
move-wide v0, v6
:goto_1
const/16 v2, 0xc
.line 6
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v9, v2
shl-long v2, v9, v3
xor-long/2addr v0, v2
goto :goto_2
:pswitch_3
move-wide v0, v6
:goto_2
const/16 v2, 0xb
.line 7
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v2, v2
shl-long/2addr v2, v4
xor-long/2addr v0, v2
goto :goto_3
:pswitch_4
move-wide v0, v6
:goto_3
const/16 v2, 0xa
.line 8
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v2, v2
shl-long/2addr v2, v5
xor-long/2addr v0, v2
goto :goto_4
:pswitch_5
move-wide v0, v6
:goto_4
const/16 v2, 0x9
.line 9
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v2, v2
shl-long/2addr v2, v8
xor-long/2addr v0, v2
goto :goto_5
:pswitch_6
move-wide v0, v6
.line 10
:goto_5
invoke-virtual {p1, v8}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v2, v2
xor-long/2addr v0, v2
goto :goto_6
:pswitch_7
move-wide v0, v6
.line 11
:goto_6
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getLong()J
move-result-wide v2
xor-long/2addr v2, v6
move-wide v6, v0
goto :goto_d
:pswitch_8
const/4 v0, 0x6
.line 12
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->get(I)B
move-result v0
invoke-static {v0}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v0
int-to-long v9, v0
shl-long v0, v9, v1
xor-long/2addr v0, v6
goto :goto_7
:pswitch_9
move-wide v0, v6
:goto_7
const/4 v9, 0x5
.line 13
invoke-virtual {p1, v9}, Ljava/nio/ByteBuffer;->get(I)B
move-result v9
invoke-static {v9}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v9
int-to-long v9, v9
shl-long/2addr v9, v2
xor-long/2addr v0, v9
goto :goto_8
:pswitch_a
move-wide v0, v6
:goto_8
const/4 v2, 0x4
.line 14
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v9, v2
shl-long v2, v9, v3
xor-long/2addr v0, v2
goto :goto_9
:pswitch_b
move-wide v0, v6
:goto_9
const/4 v2, 0x3
.line 15
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v2, v2
shl-long/2addr v2, v4
xor-long/2addr v0, v2
goto :goto_a
:pswitch_c
move-wide v0, v6
:goto_a
const/4 v2, 0x2
.line 16
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v2, v2
shl-long/2addr v2, v5
xor-long/2addr v0, v2
goto :goto_b
:pswitch_d
move-wide v0, v6
:goto_b
const/4 v2, 0x1
.line 17
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result v2
invoke-static {v2}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v2
int-to-long v2, v2
shl-long/2addr v2, v8
xor-long/2addr v0, v2
goto :goto_c
:pswitch_e
move-wide v0, v6
:goto_c
const/4 v2, 0x0
.line 18
invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B
move-result p1
invoke-static {p1}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result p1
int-to-long v2, p1
xor-long/2addr v2, v0
.line 19
:goto_d
iget-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
invoke-static {v2, v3}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->mixK1(J)J
move-result-wide v2
xor-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h1:J
.line 20
iget-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
invoke-static {v6, v7}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->mixK2(J)J
move-result-wide v2
xor-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;->h2:J
return-void
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_e
:pswitch_d
:pswitch_c
:pswitch_b
:pswitch_a
:pswitch_9
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
@@ -0,0 +1,159 @@
.class final Lcom/google/common/hash/Murmur3_128HashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "Murmur3_128HashFunction.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;
}
.end annotation
# static fields
.field public static final GOOD_FAST_HASH_128:Lcom/google/common/hash/HashFunction;
.field public static final MURMUR3_128:Lcom/google/common/hash/HashFunction;
.field private static final serialVersionUID:J
# instance fields
.field private final seed:I
# direct methods
.method public static constructor <clinit>()V
.locals 2
.line 1
new-instance v0, Lcom/google/common/hash/Murmur3_128HashFunction;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/google/common/hash/Murmur3_128HashFunction;-><init>(I)V
sput-object v0, Lcom/google/common/hash/Murmur3_128HashFunction;->MURMUR3_128:Lcom/google/common/hash/HashFunction;
.line 2
new-instance v0, Lcom/google/common/hash/Murmur3_128HashFunction;
sget v1, Lcom/google/common/hash/Hashing;->GOOD_FAST_HASH_SEED:I
invoke-direct {v0, v1}, Lcom/google/common/hash/Murmur3_128HashFunction;-><init>(I)V
sput-object v0, Lcom/google/common/hash/Murmur3_128HashFunction;->GOOD_FAST_HASH_128:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method public constructor <init>(I)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
.line 2
iput p1, p0, Lcom/google/common/hash/Murmur3_128HashFunction;->seed:I
return-void
.end method
# virtual methods
.method public bits()I
.locals 1
const/16 v0, 0x80
return v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 2
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/Murmur3_128HashFunction;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/Murmur3_128HashFunction;
.line 3
iget v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction;->seed:I
iget p1, p1, Lcom/google/common/hash/Murmur3_128HashFunction;->seed:I
if-ne v0, p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public hashCode()I
.locals 2
.line 1
const-class v0, Lcom/google/common/hash/Murmur3_128HashFunction;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
iget v1, p0, Lcom/google/common/hash/Murmur3_128HashFunction;->seed:I
xor-int/2addr v0, v1
return v0
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 2
.line 1
new-instance v0, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;
iget v1, p0, Lcom/google/common/hash/Murmur3_128HashFunction;->seed:I
invoke-direct {v0, v1}, Lcom/google/common/hash/Murmur3_128HashFunction$Murmur3_128Hasher;-><init>(I)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.line 1
iget v0, p0, Lcom/google/common/hash/Murmur3_128HashFunction;->seed:I
const/16 v1, 0x20
const-string v2, "Hashing.murmur3_128("
const-string v3, ")"
invoke-static {v1, v2, v0, v3}, Lcom/google/android/gms/auth/api/accounttransfer/a;->a(ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,607 @@
.class final Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;
.super Lcom/google/common/hash/AbstractHasher;
.source "Murmur3_32HashFunction.java"
# annotations
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Murmur3_32HashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Murmur3_32Hasher"
.end annotation
# instance fields
.field private buffer:J
.field private h1:I
.field private isDone:Z
.field private length:I
.field private shift:I
# direct methods
.method public constructor <init>(I)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHasher;-><init>()V
.line 2
iput p1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->h1:I
const/4 p1, 0x0
.line 3
iput p1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->length:I
.line 4
iput-boolean p1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->isDone:Z
return-void
.end method
.method private update(IJ)V
.locals 4
.line 1
iget-wide v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->buffer:J
const-wide v2, 0xffffffffL
and-long/2addr p2, v2
iget v2, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->shift:I
shl-long/2addr p2, v2
or-long/2addr p2, v0
iput-wide p2, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->buffer:J
mul-int/lit8 v0, p1, 0x8
add-int/2addr v0, v2
.line 2
iput v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->shift:I
.line 3
iget v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->length:I
add-int/2addr v1, p1
iput v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->length:I
const/16 p1, 0x20
if-lt v0, p1, :cond_0
.line 4
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->h1:I
long-to-int p2, p2
invoke-static {p2}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$000(I)I
move-result p2
invoke-static {v0, p2}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$100(II)I
move-result p2
iput p2, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->h1:I
.line 5
iget-wide p2, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->buffer:J
ushr-long/2addr p2, p1
iput-wide p2, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->buffer:J
.line 6
iget p2, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->shift:I
sub-int/2addr p2, p1
iput p2, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->shift:I
:cond_0
return-void
.end method
# virtual methods
.method public hash()Lcom/google/common/hash/HashCode;
.locals 3
.line 1
iget-boolean v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->isDone:Z
const/4 v1, 0x1
xor-int/2addr v0, v1
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkState(Z)V
.line 2
iput-boolean v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->isDone:Z
.line 3
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->h1:I
iget-wide v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->buffer:J
long-to-int v1, v1
invoke-static {v1}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$000(I)I
move-result v1
xor-int/2addr v0, v1
iput v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->h1:I
.line 4
iget v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->length:I
invoke-static {v0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$600(II)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public putByte(B)Lcom/google/common/hash/Hasher;
.locals 2
and-int/lit16 p1, p1, 0xff
int-to-long v0, p1
const/4 p1, 0x1
.line 2
invoke-direct {p0, p1, v0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
return-object p0
.end method
.method public bridge synthetic putByte(B)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
.locals 3
.line 6
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->order()Ljava/nio/ByteOrder;
move-result-object v0
.line 7
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
.line 8
:goto_0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v1
const/4 v2, 0x4
if-lt v1, v2, :cond_0
.line 9
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I
move-result v1
invoke-virtual {p0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putInt(I)Lcom/google/common/hash/Hasher;
goto :goto_0
.line 10
:cond_0
:goto_1
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z
move-result v1
if-eqz v1, :cond_1
.line 11
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
move-result v1
invoke-virtual {p0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
goto :goto_1
.line 12
:cond_1
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
return-object p0
.end method
.method public putBytes([BII)Lcom/google/common/hash/Hasher;
.locals 4
add-int v0, p2, p3
.line 3
array-length v1, p1
invoke-static {p2, v0, v1}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
const/4 v0, 0x0
:goto_0
add-int/lit8 v1, v0, 0x4
if-gt v1, p3, :cond_0
add-int/2addr v0, p2
.line 4
invoke-static {p1, v0}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$200([BI)I
move-result v0
int-to-long v2, v0
const/4 v0, 0x4
invoke-direct {p0, v0, v2, v3}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
move v0, v1
goto :goto_0
:cond_0
:goto_1
if-ge v0, p3, :cond_1
add-int v1, p2, v0
.line 5
aget-byte v1, p1, v1
invoke-virtual {p0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putByte(B)Lcom/google/common/hash/Hasher;
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_1
return-object p0
.end method
.method public bridge synthetic putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 2
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putBytes([BII)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putChar(C)Lcom/google/common/hash/Hasher;
.locals 2
int-to-long v0, p1
const/4 p1, 0x2
.line 2
invoke-direct {p0, p1, v0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
return-object p0
.end method
.method public bridge synthetic putChar(C)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putChar(C)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putInt(I)Lcom/google/common/hash/Hasher;
.locals 2
int-to-long v0, p1
const/4 p1, 0x4
.line 2
invoke-direct {p0, p1, v0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
return-object p0
.end method
.method public bridge synthetic putInt(I)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putInt(I)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putLong(J)Lcom/google/common/hash/Hasher;
.locals 3
long-to-int v0, p1
int-to-long v0, v0
const/4 v2, 0x4
.line 2
invoke-direct {p0, v2, v0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
const/16 v0, 0x20
ushr-long/2addr p1, v0
.line 3
invoke-direct {p0, v2, p1, p2}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
return-object p0
.end method
.method public bridge synthetic putLong(J)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putLong(J)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
.locals 9
.line 2
sget-object v0, Lcom/google/common/base/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {v0, p2}, Ljava/nio/charset/Charset;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
.line 3
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x0
:goto_0
add-int/lit8 v2, v1, 0x4
const/4 v3, 0x4
const/16 v4, 0x80
if-gt v2, v0, :cond_0
.line 4
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v5
add-int/lit8 v6, v1, 0x1
.line 5
invoke-interface {p1, v6}, Ljava/lang/CharSequence;->charAt(I)C
move-result v6
add-int/lit8 v7, v1, 0x2
.line 6
invoke-interface {p1, v7}, Ljava/lang/CharSequence;->charAt(I)C
move-result v7
add-int/lit8 v8, v1, 0x3
.line 7
invoke-interface {p1, v8}, Ljava/lang/CharSequence;->charAt(I)C
move-result v8
if-ge v5, v4, :cond_0
if-ge v6, v4, :cond_0
if-ge v7, v4, :cond_0
if-ge v8, v4, :cond_0
shl-int/lit8 v1, v6, 0x8
or-int/2addr v1, v5
shl-int/lit8 v4, v7, 0x10
or-int/2addr v1, v4
shl-int/lit8 v4, v8, 0x18
or-int/2addr v1, v4
int-to-long v4, v1
.line 8
invoke-direct {p0, v3, v4, v5}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
move v1, v2
goto :goto_0
:cond_0
:goto_1
if-ge v1, v0, :cond_6
.line 9
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v2
const/4 v5, 0x1
if-ge v2, v4, :cond_1
int-to-long v6, v2
.line 10
invoke-direct {p0, v5, v6, v7}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
goto :goto_3
:cond_1
const/16 v6, 0x800
if-ge v2, v6, :cond_2
.line 11
invoke-static {v2}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$300(C)J
move-result-wide v6
const/4 v2, 0x2
invoke-direct {p0, v2, v6, v7}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
goto :goto_3
:cond_2
const v6, 0xd800
if-lt v2, v6, :cond_5
const v6, 0xdfff
if-le v2, v6, :cond_3
goto :goto_2
.line 12
:cond_3
invoke-static {p1, v1}, Ljava/lang/Character;->codePointAt(Ljava/lang/CharSequence;I)I
move-result v6
if-ne v6, v2, :cond_4
.line 13
invoke-interface {p1, v1, v0}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
move-result-object p1
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHasher;->putBytes([B)Lcom/google/common/hash/Hasher;
return-object p0
:cond_4
add-int/lit8 v1, v1, 0x1
.line 14
invoke-static {v6}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$500(I)J
move-result-wide v6
invoke-direct {p0, v3, v6, v7}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
goto :goto_3
.line 15
:cond_5
:goto_2
invoke-static {v2}, Lcom/google/common/hash/Murmur3_32HashFunction;->access$400(C)J
move-result-wide v6
const/4 v2, 0x3
invoke-direct {p0, v2, v6, v7}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->update(IJ)V
:goto_3
add-int/2addr v1, v5
goto :goto_1
:cond_6
return-object p0
.line 16
:cond_7
invoke-super {p0, p1, p2}, Lcom/google/common/hash/AbstractHasher;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/PrimitiveSink;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;->putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/Hasher;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,996 @@
.class final Lcom/google/common/hash/Murmur3_32HashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "Murmur3_32HashFunction.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;
}
.end annotation
# static fields
.field private static final C1:I = -0x3361d2af
.field private static final C2:I = 0x1b873593
.field private static final CHUNK_SIZE:I = 0x4
.field public static final GOOD_FAST_HASH_32:Lcom/google/common/hash/HashFunction;
.field public static final MURMUR3_32:Lcom/google/common/hash/HashFunction;
.field public static final MURMUR3_32_FIXED:Lcom/google/common/hash/HashFunction;
.field private static final serialVersionUID:J
# instance fields
.field private final seed:I
.field private final supplementaryPlaneFix:Z
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/common/hash/Murmur3_32HashFunction;
const/4 v1, 0x0
invoke-direct {v0, v1, v1}, Lcom/google/common/hash/Murmur3_32HashFunction;-><init>(IZ)V
sput-object v0, Lcom/google/common/hash/Murmur3_32HashFunction;->MURMUR3_32:Lcom/google/common/hash/HashFunction;
.line 2
new-instance v0, Lcom/google/common/hash/Murmur3_32HashFunction;
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/Murmur3_32HashFunction;-><init>(IZ)V
sput-object v0, Lcom/google/common/hash/Murmur3_32HashFunction;->MURMUR3_32_FIXED:Lcom/google/common/hash/HashFunction;
.line 3
new-instance v0, Lcom/google/common/hash/Murmur3_32HashFunction;
sget v1, Lcom/google/common/hash/Hashing;->GOOD_FAST_HASH_SEED:I
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/Murmur3_32HashFunction;-><init>(IZ)V
sput-object v0, Lcom/google/common/hash/Murmur3_32HashFunction;->GOOD_FAST_HASH_32:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method public constructor <init>(IZ)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
.line 2
iput p1, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
.line 3
iput-boolean p2, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->supplementaryPlaneFix:Z
return-void
.end method
.method public static synthetic access$000(I)I
.locals 0
.line 1
invoke-static {p0}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result p0
return p0
.end method
.method public static synthetic access$100(II)I
.locals 0
.line 1
invoke-static {p0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result p0
return p0
.end method
.method public static synthetic access$200([BI)I
.locals 0
.line 1
invoke-static {p0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->getIntLittleEndian([BI)I
move-result p0
return p0
.end method
.method public static synthetic access$300(C)J
.locals 2
.line 1
invoke-static {p0}, Lcom/google/common/hash/Murmur3_32HashFunction;->charToTwoUtf8Bytes(C)J
move-result-wide v0
return-wide v0
.end method
.method public static synthetic access$400(C)J
.locals 2
.line 1
invoke-static {p0}, Lcom/google/common/hash/Murmur3_32HashFunction;->charToThreeUtf8Bytes(C)J
move-result-wide v0
return-wide v0
.end method
.method public static synthetic access$500(I)J
.locals 2
.line 1
invoke-static {p0}, Lcom/google/common/hash/Murmur3_32HashFunction;->codePointToFourUtf8Bytes(I)J
move-result-wide v0
return-wide v0
.end method
.method public static synthetic access$600(II)Lcom/google/common/hash/HashCode;
.locals 0
.line 1
invoke-static {p0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->fmix(II)Lcom/google/common/hash/HashCode;
move-result-object p0
return-object p0
.end method
.method private static charToThreeUtf8Bytes(C)J
.locals 4
ushr-int/lit8 v0, p0, 0xc
int-to-long v0, v0
const-wide/16 v2, 0xe0
or-long/2addr v0, v2
ushr-int/lit8 v2, p0, 0x6
and-int/lit8 v2, v2, 0x3f
or-int/lit16 v2, v2, 0x80
shl-int/lit8 v2, v2, 0x8
int-to-long v2, v2
or-long/2addr v0, v2
and-int/lit8 p0, p0, 0x3f
or-int/lit16 p0, p0, 0x80
shl-int/lit8 p0, p0, 0x10
int-to-long v2, p0
or-long/2addr v0, v2
return-wide v0
.end method
.method private static charToTwoUtf8Bytes(C)J
.locals 4
ushr-int/lit8 v0, p0, 0x6
int-to-long v0, v0
const-wide/16 v2, 0xc0
or-long/2addr v0, v2
and-int/lit8 p0, p0, 0x3f
or-int/lit16 p0, p0, 0x80
shl-int/lit8 p0, p0, 0x8
int-to-long v2, p0
or-long/2addr v0, v2
return-wide v0
.end method
.method private static codePointToFourUtf8Bytes(I)J
.locals 7
ushr-int/lit8 v0, p0, 0x12
int-to-long v0, v0
const-wide/16 v2, 0xf0
or-long/2addr v0, v2
ushr-int/lit8 v2, p0, 0xc
and-int/lit8 v2, v2, 0x3f
int-to-long v2, v2
const-wide/16 v4, 0x80
or-long/2addr v2, v4
const/16 v6, 0x8
shl-long/2addr v2, v6
or-long/2addr v0, v2
ushr-int/lit8 v2, p0, 0x6
and-int/lit8 v2, v2, 0x3f
int-to-long v2, v2
or-long/2addr v2, v4
const/16 v6, 0x10
shl-long/2addr v2, v6
or-long/2addr v0, v2
and-int/lit8 p0, p0, 0x3f
int-to-long v2, p0
or-long/2addr v2, v4
const/16 p0, 0x18
shl-long/2addr v2, p0
or-long/2addr v0, v2
return-wide v0
.end method
.method private static fmix(II)Lcom/google/common/hash/HashCode;
.locals 0
xor-int/2addr p0, p1
ushr-int/lit8 p1, p0, 0x10
xor-int/2addr p0, p1
const p1, -0x7a143595
mul-int/2addr p0, p1
ushr-int/lit8 p1, p0, 0xd
xor-int/2addr p0, p1
const p1, -0x3d4d51cb
mul-int/2addr p0, p1
ushr-int/lit8 p1, p0, 0x10
xor-int/2addr p0, p1
.line 1
invoke-static {p0}, Lcom/google/common/hash/HashCode;->fromInt(I)Lcom/google/common/hash/HashCode;
move-result-object p0
return-object p0
.end method
.method private static getIntLittleEndian([BI)I
.locals 3
add-int/lit8 v0, p1, 0x3
.line 1
aget-byte v0, p0, v0
add-int/lit8 v1, p1, 0x2
aget-byte v1, p0, v1
add-int/lit8 v2, p1, 0x1
aget-byte v2, p0, v2
aget-byte p0, p0, p1
invoke-static {v0, v1, v2, p0}, Lcom/google/common/primitives/Ints;->fromBytes(BBBB)I
move-result p0
return p0
.end method
.method private static mixH1(II)I
.locals 0
xor-int/2addr p0, p1
const/16 p1, 0xd
.line 1
invoke-static {p0, p1}, Ljava/lang/Integer;->rotateLeft(II)I
move-result p0
mul-int/lit8 p0, p0, 0x5
const p1, -0x19ab949c
add-int/2addr p0, p1
return p0
.end method
.method private static mixK1(I)I
.locals 1
const v0, -0x3361d2af # -8.2930312E7f
mul-int/2addr p0, v0
const/16 v0, 0xf
.line 1
invoke-static {p0, v0}, Ljava/lang/Integer;->rotateLeft(II)I
move-result p0
const v0, 0x1b873593
mul-int/2addr p0, v0
return p0
.end method
# virtual methods
.method public bits()I
.locals 1
const/16 v0, 0x20
return v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 3
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/Murmur3_32HashFunction;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/Murmur3_32HashFunction;
.line 3
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
iget v2, p1, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
if-ne v0, v2, :cond_0
iget-boolean v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->supplementaryPlaneFix:Z
iget-boolean p1, p1, Lcom/google/common/hash/Murmur3_32HashFunction;->supplementaryPlaneFix:Z
if-ne v0, p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public hashBytes([BII)Lcom/google/common/hash/HashCode;
.locals 5
add-int v0, p2, p3
.line 1
array-length v1, p1
invoke-static {p2, v0, v1}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
.line 2
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
const/4 v1, 0x0
move v2, v1
:goto_0
add-int/lit8 v3, v2, 0x4
if-gt v3, p3, :cond_0
add-int/2addr v2, p2
.line 3
invoke-static {p1, v2}, Lcom/google/common/hash/Murmur3_32HashFunction;->getIntLittleEndian([BI)I
move-result v2
invoke-static {v2}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result v2
.line 4
invoke-static {v0, v2}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result v0
move v2, v3
goto :goto_0
:cond_0
move v3, v2
move v2, v1
:goto_1
if-ge v3, p3, :cond_1
add-int v4, p2, v3
.line 5
aget-byte v4, p1, v4
invoke-static {v4}, Lcom/google/common/primitives/UnsignedBytes;->toInt(B)I
move-result v4
shl-int/2addr v4, v2
xor-int/2addr v1, v4
add-int/lit8 v3, v3, 0x1
add-int/lit8 v2, v2, 0x8
goto :goto_1
.line 6
:cond_1
invoke-static {v1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result p1
xor-int/2addr p1, v0
.line 7
invoke-static {p1, p3}, Lcom/google/common/hash/Murmur3_32HashFunction;->fmix(II)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashCode()I
.locals 2
.line 1
const-class v0, Lcom/google/common/hash/Murmur3_32HashFunction;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
iget v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
xor-int/2addr v0, v1
return v0
.end method
.method public hashInt(I)Lcom/google/common/hash/HashCode;
.locals 1
.line 1
invoke-static {p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result p1
.line 2
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
invoke-static {v0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result p1
const/4 v0, 0x4
.line 3
invoke-static {p1, v0}, Lcom/google/common/hash/Murmur3_32HashFunction;->fmix(II)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashLong(J)Lcom/google/common/hash/HashCode;
.locals 2
long-to-int v0, p1
const/16 v1, 0x20
ushr-long/2addr p1, v1
long-to-int p1, p1
.line 1
invoke-static {v0}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result p2
.line 2
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
invoke-static {v0, p2}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result p2
.line 3
invoke-static {p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result p1
.line 4
invoke-static {p2, p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result p1
const/16 p2, 0x8
.line 5
invoke-static {p1, p2}, Lcom/google/common/hash/Murmur3_32HashFunction;->fmix(II)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/HashCode;
.locals 11
.line 1
sget-object v0, Lcom/google/common/base/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {v0, p2}, Ljava/nio/charset/Charset;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_9
.line 2
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v0
.line 3
iget v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
const/4 v2, 0x0
move v3, v2
move v4, v3
:goto_0
add-int/lit8 v5, v3, 0x4
const/16 v6, 0x80
if-gt v5, v0, :cond_0
.line 4
invoke-interface {p1, v3}, Ljava/lang/CharSequence;->charAt(I)C
move-result v7
add-int/lit8 v8, v3, 0x1
.line 5
invoke-interface {p1, v8}, Ljava/lang/CharSequence;->charAt(I)C
move-result v8
add-int/lit8 v9, v3, 0x2
.line 6
invoke-interface {p1, v9}, Ljava/lang/CharSequence;->charAt(I)C
move-result v9
add-int/lit8 v10, v3, 0x3
.line 7
invoke-interface {p1, v10}, Ljava/lang/CharSequence;->charAt(I)C
move-result v10
if-ge v7, v6, :cond_0
if-ge v8, v6, :cond_0
if-ge v9, v6, :cond_0
if-ge v10, v6, :cond_0
shl-int/lit8 v3, v8, 0x8
or-int/2addr v3, v7
shl-int/lit8 v6, v9, 0x10
or-int/2addr v3, v6
shl-int/lit8 v6, v10, 0x18
or-int/2addr v3, v6
.line 8
invoke-static {v3}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result v3
.line 9
invoke-static {v1, v3}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result v1
add-int/lit8 v4, v4, 0x4
move v3, v5
goto :goto_0
:cond_0
const-wide/16 v7, 0x0
:goto_1
if-ge v3, v0, :cond_8
.line 10
invoke-interface {p1, v3}, Ljava/lang/CharSequence;->charAt(I)C
move-result v5
if-ge v5, v6, :cond_1
int-to-long v9, v5
shl-long/2addr v9, v2
or-long/2addr v7, v9
add-int/lit8 v2, v2, 0x8
add-int/lit8 v4, v4, 0x1
goto :goto_3
:cond_1
const/16 v9, 0x800
if-ge v5, v9, :cond_2
.line 11
invoke-static {v5}, Lcom/google/common/hash/Murmur3_32HashFunction;->charToTwoUtf8Bytes(C)J
move-result-wide v9
shl-long/2addr v9, v2
or-long/2addr v7, v9
add-int/lit8 v2, v2, 0x10
add-int/lit8 v4, v4, 0x2
goto :goto_3
:cond_2
const v9, 0xd800
if-lt v5, v9, :cond_6
const v9, 0xdfff
if-le v5, v9, :cond_3
goto :goto_2
.line 12
:cond_3
invoke-static {p1, v3}, Ljava/lang/Character;->codePointAt(Ljava/lang/CharSequence;I)I
move-result v9
if-ne v9, v5, :cond_4
.line 13
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHashFunction;->hashBytes([B)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
:cond_4
add-int/lit8 v3, v3, 0x1
.line 14
invoke-static {v9}, Lcom/google/common/hash/Murmur3_32HashFunction;->codePointToFourUtf8Bytes(I)J
move-result-wide v9
shl-long/2addr v9, v2
or-long/2addr v7, v9
.line 15
iget-boolean v5, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->supplementaryPlaneFix:Z
if-eqz v5, :cond_5
add-int/lit8 v2, v2, 0x20
:cond_5
add-int/lit8 v4, v4, 0x4
goto :goto_3
.line 16
:cond_6
:goto_2
invoke-static {v5}, Lcom/google/common/hash/Murmur3_32HashFunction;->charToThreeUtf8Bytes(C)J
move-result-wide v9
shl-long/2addr v9, v2
or-long/2addr v7, v9
add-int/lit8 v2, v2, 0x18
add-int/lit8 v4, v4, 0x3
:goto_3
const/16 v5, 0x20
if-lt v2, v5, :cond_7
long-to-int v9, v7
.line 17
invoke-static {v9}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result v9
.line 18
invoke-static {v1, v9}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result v1
ushr-long/2addr v7, v5
add-int/lit8 v2, v2, -0x20
:cond_7
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_8
long-to-int p1, v7
.line 19
invoke-static {p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result p1
xor-int/2addr p1, v1
.line 20
invoke-static {p1, v4}, Lcom/google/common/hash/Murmur3_32HashFunction;->fmix(II)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.line 21
:cond_9
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractHashFunction;->hashBytes([B)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public hashUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/HashCode;
.locals 5
.line 1
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
const/4 v1, 0x1
move v2, v1
.line 2
:goto_0
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v3
if-ge v2, v3, :cond_0
add-int/lit8 v3, v2, -0x1
.line 3
invoke-interface {p1, v3}, Ljava/lang/CharSequence;->charAt(I)C
move-result v3
invoke-interface {p1, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v4
shl-int/lit8 v4, v4, 0x10
or-int/2addr v3, v4
.line 4
invoke-static {v3}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result v3
.line 5
invoke-static {v0, v3}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixH1(II)I
move-result v0
add-int/lit8 v2, v2, 0x2
goto :goto_0
.line 6
:cond_0
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v2
and-int/2addr v2, v1
if-ne v2, v1, :cond_1
.line 7
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v2
sub-int/2addr v2, v1
invoke-interface {p1, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v1
.line 8
invoke-static {v1}, Lcom/google/common/hash/Murmur3_32HashFunction;->mixK1(I)I
move-result v1
xor-int/2addr v0, v1
.line 9
:cond_1
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result p1
mul-int/lit8 p1, p1, 0x2
invoke-static {v0, p1}, Lcom/google/common/hash/Murmur3_32HashFunction;->fmix(II)Lcom/google/common/hash/HashCode;
move-result-object p1
return-object p1
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 2
.line 1
new-instance v0, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;
iget v1, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
invoke-direct {v0, v1}, Lcom/google/common/hash/Murmur3_32HashFunction$Murmur3_32Hasher;-><init>(I)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.line 1
iget v0, p0, Lcom/google/common/hash/Murmur3_32HashFunction;->seed:I
const/16 v1, 0x1f
const-string v2, "Hashing.murmur3_32("
const-string v3, ")"
invoke-static {v1, v2, v0, v3}, Lcom/google/android/gms/auth/api/accounttransfer/a;->a(ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,30 @@
.class interface abstract annotation Lcom/google/common/hash/ParametricNullness;
.super Ljava/lang/Object;
.source "ParametricNullness.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Lcom/google/common/annotations/GwtCompatible;
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->FIELD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->METHOD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->PARAMETER:Ljava/lang/annotation/ElementType;
}
.end annotation
.annotation runtime Ljavax/annotation/Nonnull;
when = .enum Ljavax/annotation/meta/When;->UNKNOWN:Ljavax/annotation/meta/When;
.end annotation
.annotation build Ljavax/annotation/meta/TypeQualifierNickname;
.end annotation
@@ -0,0 +1,55 @@
.class public interface abstract Lcom/google/common/hash/PrimitiveSink;
.super Ljava/lang/Object;
.source "PrimitiveSink.java"
# annotations
.annotation build Lcom/google/common/annotations/Beta;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
# virtual methods
.method public abstract putBoolean(Z)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putByte(B)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putBytes(Ljava/nio/ByteBuffer;)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putBytes([B)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putBytes([BII)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putChar(C)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putDouble(D)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putFloat(F)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putInt(I)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putLong(J)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putShort(S)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putString(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lcom/google/common/hash/PrimitiveSink;
.end method
.method public abstract putUnencodedChars(Ljava/lang/CharSequence;)Lcom/google/common/hash/PrimitiveSink;
.end method
@@ -0,0 +1,404 @@
.class final Lcom/google/common/hash/SipHashFunction$SipHasher;
.super Lcom/google/common/hash/AbstractStreamingHasher;
.source "SipHashFunction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/SipHashFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SipHasher"
.end annotation
# static fields
.field private static final CHUNK_SIZE:I = 0x8
# instance fields
.field private b:J
.field private final c:I
.field private final d:I
.field private finalM:J
.field private v0:J
.field private v1:J
.field private v2:J
.field private v3:J
# direct methods
.method public constructor <init>(IIJJ)V
.locals 11
move-object v0, p0
const/16 v1, 0x8
.line 1
invoke-direct {p0, v1}, Lcom/google/common/hash/AbstractStreamingHasher;-><init>(I)V
const-wide v1, 0x736f6d6570736575L # 1.0986868386607877E248
.line 2
iput-wide v1, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
const-wide v3, 0x646f72616e646f6dL # 6.222199573468475E175
.line 3
iput-wide v3, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
const-wide v5, 0x6c7967656e657261L # 3.4208747916531402E214
.line 4
iput-wide v5, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
const-wide v7, 0x7465646279746573L # 4.901176695720602E252
.line 5
iput-wide v7, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
const-wide/16 v9, 0x0
.line 6
iput-wide v9, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->b:J
.line 7
iput-wide v9, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->finalM:J
move v9, p1
.line 8
iput v9, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->c:I
move v9, p2
.line 9
iput v9, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->d:I
xor-long/2addr v1, p3
.line 10
iput-wide v1, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
xor-long v1, v3, p5
.line 11
iput-wide v1, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
xor-long v1, v5, p3
.line 12
iput-wide v1, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
xor-long v1, v7, p5
.line 13
iput-wide v1, v0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
return-void
.end method
.method private processM(J)V
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
xor-long/2addr v0, p1
iput-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
.line 2
iget v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->c:I
invoke-direct {p0, v0}, Lcom/google/common/hash/SipHashFunction$SipHasher;->sipRound(I)V
.line 3
iget-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
xor-long/2addr p1, v0
iput-wide p1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
return-void
.end method
.method private sipRound(I)V
.locals 8
const/4 v0, 0x0
:goto_0
if-ge v0, p1, :cond_0
.line 1
iget-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
iget-wide v3, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
add-long/2addr v1, v3
iput-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
.line 2
iget-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
iget-wide v5, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
add-long/2addr v1, v5
iput-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
const/16 v1, 0xd
.line 3
invoke-static {v3, v4, v1}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide v1
iput-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
.line 4
iget-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
const/16 v3, 0x10
invoke-static {v1, v2, v3}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide v1
iput-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
.line 5
iget-wide v3, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
iget-wide v5, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
xor-long/2addr v3, v5
iput-wide v3, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
.line 6
iget-wide v3, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
xor-long/2addr v1, v3
iput-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
const/16 v1, 0x20
.line 7
invoke-static {v5, v6, v1}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide v2
iput-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
.line 8
iget-wide v4, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
iget-wide v6, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
add-long/2addr v4, v6
iput-wide v4, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
.line 9
iget-wide v4, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
add-long/2addr v2, v4
iput-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
const/16 v2, 0x11
.line 10
invoke-static {v6, v7, v2}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide v2
iput-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
.line 11
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
const/16 v4, 0x15
invoke-static {v2, v3, v4}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide v2
iput-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
.line 12
iget-wide v4, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
iget-wide v6, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
xor-long/2addr v4, v6
iput-wide v4, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
.line 13
iget-wide v4, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
xor-long/2addr v2, v4
iput-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
.line 14
invoke-static {v6, v7, v1}, Ljava/lang/Long;->rotateLeft(JI)J
move-result-wide v1
iput-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
# virtual methods
.method public makeHash()Lcom/google/common/hash/HashCode;
.locals 5
.line 1
iget-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->finalM:J
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->b:J
const/16 v4, 0x38
shl-long/2addr v2, v4
xor-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->finalM:J
.line 2
invoke-direct {p0, v0, v1}, Lcom/google/common/hash/SipHashFunction$SipHasher;->processM(J)V
.line 3
iget-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
const-wide/16 v2, 0xff
xor-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
.line 4
iget v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->d:I
invoke-direct {p0, v0}, Lcom/google/common/hash/SipHashFunction$SipHasher;->sipRound(I)V
.line 5
iget-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v0:J
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v1:J
xor-long/2addr v0, v2
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v2:J
xor-long/2addr v0, v2
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->v3:J
xor-long/2addr v0, v2
invoke-static {v0, v1}, Lcom/google/common/hash/HashCode;->fromLong(J)Lcom/google/common/hash/HashCode;
move-result-object v0
return-object v0
.end method
.method public process(Ljava/nio/ByteBuffer;)V
.locals 4
.line 1
iget-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->b:J
const-wide/16 v2, 0x8
add-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->b:J
.line 2
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getLong()J
move-result-wide v0
invoke-direct {p0, v0, v1}, Lcom/google/common/hash/SipHashFunction$SipHasher;->processM(J)V
return-void
.end method
.method public processRemaining(Ljava/nio/ByteBuffer;)V
.locals 7
.line 1
iget-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->b:J
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result v2
int-to-long v2, v2
add-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->b:J
const/4 v0, 0x0
.line 2
:goto_0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z
move-result v1
if-eqz v1, :cond_0
.line 3
iget-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->finalM:J
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->get()B
move-result v3
int-to-long v3, v3
const-wide/16 v5, 0xff
and-long/2addr v3, v5
shl-long/2addr v3, v0
xor-long/2addr v1, v3
iput-wide v1, p0, Lcom/google/common/hash/SipHashFunction$SipHasher;->finalM:J
add-int/lit8 v0, v0, 0x8
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,279 @@
.class final Lcom/google/common/hash/SipHashFunction;
.super Lcom/google/common/hash/AbstractHashFunction;
.source "SipHashFunction.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/SipHashFunction$SipHasher;
}
.end annotation
# static fields
.field public static final SIP_HASH_24:Lcom/google/common/hash/HashFunction;
.field private static final serialVersionUID:J
# instance fields
.field private final c:I
.field private final d:I
.field private final k0:J
.field private final k1:J
# direct methods
.method public static constructor <clinit>()V
.locals 8
.line 1
new-instance v7, Lcom/google/common/hash/SipHashFunction;
const/4 v1, 0x2
const/4 v2, 0x4
const-wide v3, 0x706050403020100L
const-wide v5, 0xf0e0d0c0b0a0908L
move-object v0, v7
invoke-direct/range {v0 .. v6}, Lcom/google/common/hash/SipHashFunction;-><init>(IIJJ)V
sput-object v7, Lcom/google/common/hash/SipHashFunction;->SIP_HASH_24:Lcom/google/common/hash/HashFunction;
return-void
.end method
.method public constructor <init>(IIJJ)V
.locals 4
.line 1
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
const/4 v0, 0x1
const/4 v1, 0x0
if-lez p1, :cond_0
move v2, v0
goto :goto_0
:cond_0
move v2, v1
:goto_0
const-string v3, "The number of SipRound iterations (c=%s) during Compression must be positive."
.line 2
invoke-static {v2, v3, p1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
if-lez p2, :cond_1
goto :goto_1
:cond_1
move v0, v1
:goto_1
const-string v1, "The number of SipRound iterations (d=%s) during Finalization must be positive."
.line 3
invoke-static {v0, v1, p2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
.line 4
iput p1, p0, Lcom/google/common/hash/SipHashFunction;->c:I
.line 5
iput p2, p0, Lcom/google/common/hash/SipHashFunction;->d:I
.line 6
iput-wide p3, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
.line 7
iput-wide p5, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
return-void
.end method
# virtual methods
.method public bits()I
.locals 1
const/16 v0, 0x40
return v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 6
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/common/hash/SipHashFunction;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/common/hash/SipHashFunction;
.line 3
iget v0, p0, Lcom/google/common/hash/SipHashFunction;->c:I
iget v2, p1, Lcom/google/common/hash/SipHashFunction;->c:I
if-ne v0, v2, :cond_0
iget v0, p0, Lcom/google/common/hash/SipHashFunction;->d:I
iget v2, p1, Lcom/google/common/hash/SipHashFunction;->d:I
if-ne v0, v2, :cond_0
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
iget-wide v4, p1, Lcom/google/common/hash/SipHashFunction;->k0:J
cmp-long v0, v2, v4
if-nez v0, :cond_0
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
iget-wide v4, p1, Lcom/google/common/hash/SipHashFunction;->k1:J
cmp-long p1, v2, v4
if-nez p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public hashCode()I
.locals 4
.line 1
const-class v0, Lcom/google/common/hash/SipHashFunction;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->c:I
xor-int/2addr v0, v1
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->d:I
xor-int/2addr v0, v1
int-to-long v0, v0
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
xor-long/2addr v0, v2
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
xor-long/2addr v0, v2
long-to-int v0, v0
return v0
.end method
.method public newHasher()Lcom/google/common/hash/Hasher;
.locals 8
.line 1
new-instance v7, Lcom/google/common/hash/SipHashFunction$SipHasher;
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->c:I
iget v2, p0, Lcom/google/common/hash/SipHashFunction;->d:I
iget-wide v3, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
iget-wide v5, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
move-object v0, v7
invoke-direct/range {v0 .. v6}, Lcom/google/common/hash/SipHashFunction$SipHasher;-><init>(IIJJ)V
return-object v7
.end method
.method public toString()Ljava/lang/String;
.locals 8
.line 1
iget v0, p0, Lcom/google/common/hash/SipHashFunction;->c:I
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->d:I
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
iget-wide v4, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
new-instance v6, Ljava/lang/StringBuilder;
const/16 v7, 0x51
invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v7, "Hashing.sipHash"
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v0, "("
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v0, ", "
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v0, ")"
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,123 @@
.class Lcom/google/common/hash/Striped64$1;
.super Ljava/lang/Object;
.source "Striped64.java"
# interfaces
.implements Ljava/security/PrivilegedExceptionAction;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/common/hash/Striped64;->getUnsafe()Lsun/misc/Unsafe;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/security/PrivilegedExceptionAction<",
"Lsun/misc/Unsafe;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic run()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/common/hash/Striped64$1;->run()Lsun/misc/Unsafe;
move-result-object v0
return-object v0
.end method
.method public run()Lsun/misc/Unsafe;
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 2
const-class v0, Lsun/misc/Unsafe;
.line 3
invoke-virtual {v0}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
aget-object v4, v1, v3
const/4 v5, 0x1
.line 4
invoke-virtual {v4, v5}, Ljava/lang/reflect/Field;->setAccessible(Z)V
const/4 v5, 0x0
.line 5
invoke-virtual {v4, v5}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
.line 6
invoke-virtual {v0, v4}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_0
invoke-virtual {v0, v4}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lsun/misc/Unsafe;
return-object v0
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 7
:cond_1
new-instance v0, Ljava/lang/NoSuchFieldError;
const-string v1, "the Unsafe"
invoke-direct {v0, v1}, Ljava/lang/NoSuchFieldError;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,131 @@
.class final Lcom/google/common/hash/Striped64$Cell;
.super Ljava/lang/Object;
.source "Striped64.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/Striped64;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Cell"
.end annotation
# static fields
.field private static final UNSAFE:Lsun/misc/Unsafe;
.field private static final valueOffset:J
# instance fields
.field public volatile p0:J
.field public volatile p1:J
.field public volatile p2:J
.field public volatile p3:J
.field public volatile p4:J
.field public volatile p5:J
.field public volatile p6:J
.field public volatile q0:J
.field public volatile q1:J
.field public volatile q2:J
.field public volatile q3:J
.field public volatile q4:J
.field public volatile q5:J
.field public volatile q6:J
.field public volatile value:J
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
:try_start_0
invoke-static {}, Lcom/google/common/hash/Striped64;->access$000()Lsun/misc/Unsafe;
move-result-object v0
sput-object v0, Lcom/google/common/hash/Striped64$Cell;->UNSAFE:Lsun/misc/Unsafe;
.line 2
const-class v1, Lcom/google/common/hash/Striped64$Cell;
const-string v2, "value"
.line 3
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v0
sput-wide v0, Lcom/google/common/hash/Striped64$Cell;->valueOffset:J
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
.line 4
new-instance v1, Ljava/lang/Error;
invoke-direct {v1, v0}, Ljava/lang/Error;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public constructor <init>(J)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-wide p1, p0, Lcom/google/common/hash/Striped64$Cell;->value:J
return-void
.end method
# virtual methods
.method public final cas(JJ)Z
.locals 8
.line 1
sget-object v0, Lcom/google/common/hash/Striped64$Cell;->UNSAFE:Lsun/misc/Unsafe;
sget-wide v2, Lcom/google/common/hash/Striped64$Cell;->valueOffset:J
move-object v1, p0
move-wide v4, p1
move-wide v6, p3
invoke-virtual/range {v0 .. v7}, Lsun/misc/Unsafe;->compareAndSwapLong(Ljava/lang/Object;JJJ)Z
move-result p1
return p1
.end method
@@ -0,0 +1,628 @@
.class abstract Lcom/google/common/hash/Striped64;
.super Ljava/lang/Number;
.source "Striped64.java"
# annotations
.annotation build Lcom/google/common/annotations/GwtIncompatible;
.end annotation
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/hash/Striped64$Cell;
}
.end annotation
# static fields
.field public static final NCPU:I
.field private static final UNSAFE:Lsun/misc/Unsafe;
.field private static final baseOffset:J
.field private static final busyOffset:J
.field public static final rng:Ljava/util/Random;
.field public static final threadHashCode:Ljava/lang/ThreadLocal;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal<",
"[I>;"
}
.end annotation
.end field
# instance fields
.field public volatile transient base:J
.field public volatile transient busy:I
.field public volatile transient cells:[Lcom/google/common/hash/Striped64$Cell;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Ljava/lang/ThreadLocal;
invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
sput-object v0, Lcom/google/common/hash/Striped64;->threadHashCode:Ljava/lang/ThreadLocal;
.line 2
new-instance v0, Ljava/util/Random;
invoke-direct {v0}, Ljava/util/Random;-><init>()V
sput-object v0, Lcom/google/common/hash/Striped64;->rng:Ljava/util/Random;
.line 3
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
move-result v0
sput v0, Lcom/google/common/hash/Striped64;->NCPU:I
.line 4
:try_start_0
invoke-static {}, Lcom/google/common/hash/Striped64;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v0
sput-object v0, Lcom/google/common/hash/Striped64;->UNSAFE:Lsun/misc/Unsafe;
.line 5
const-class v1, Lcom/google/common/hash/Striped64;
const-string v2, "base"
.line 6
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
invoke-virtual {v0, v2}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v2
sput-wide v2, Lcom/google/common/hash/Striped64;->baseOffset:J
const-string v2, "busy"
.line 7
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
move-result-wide v0
sput-wide v0, Lcom/google/common/hash/Striped64;->busyOffset:J
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
.line 8
new-instance v1, Ljava/lang/Error;
invoke-direct {v1, v0}, Ljava/lang/Error;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Number;-><init>()V
return-void
.end method
.method static synthetic access$000()Lsun/misc/Unsafe;
.locals 1
.line 1
invoke-static {}, Lcom/google/common/hash/Striped64;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v0
return-object v0
.end method
.method private static getUnsafe()Lsun/misc/Unsafe;
.locals 3
.line 1
:try_start_0
invoke-static {}, Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v0
:try_end_0
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
.line 2
:catch_0
:try_start_1
new-instance v0, Lcom/google/common/hash/Striped64$1;
invoke-direct {v0}, Lcom/google/common/hash/Striped64$1;-><init>()V
invoke-static {v0}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lsun/misc/Unsafe;
:try_end_1
.catch Ljava/security/PrivilegedActionException; {:try_start_1 .. :try_end_1} :catch_1
return-object v0
:catch_1
move-exception v0
.line 3
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/security/PrivilegedActionException;->getCause()Ljava/lang/Throwable;
move-result-object v0
const-string v2, "Could not initialize intrinsics"
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
# virtual methods
.method final casBase(JJ)Z
.locals 8
.line 1
sget-object v0, Lcom/google/common/hash/Striped64;->UNSAFE:Lsun/misc/Unsafe;
sget-wide v2, Lcom/google/common/hash/Striped64;->baseOffset:J
move-object v1, p0
move-wide v4, p1
move-wide v6, p3
invoke-virtual/range {v0 .. v7}, Lsun/misc/Unsafe;->compareAndSwapLong(Ljava/lang/Object;JJJ)Z
move-result p1
return p1
.end method
.method final casBusy()Z
.locals 6
.line 1
sget-object v0, Lcom/google/common/hash/Striped64;->UNSAFE:Lsun/misc/Unsafe;
sget-wide v2, Lcom/google/common/hash/Striped64;->busyOffset:J
const/4 v4, 0x0
const/4 v5, 0x1
move-object v1, p0
invoke-virtual/range {v0 .. v5}, Lsun/misc/Unsafe;->compareAndSwapInt(Ljava/lang/Object;JII)Z
move-result v0
return v0
.end method
.method abstract fn(JJ)J
.end method
.method final internalReset(J)V
.locals 4
.line 1
iget-object v0, p0, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
.line 2
iput-wide p1, p0, Lcom/google/common/hash/Striped64;->base:J
if-eqz v0, :cond_1
.line 3
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
.line 4
aget-object v3, v0, v2
if-eqz v3, :cond_0
.line 5
iput-wide p1, v3, Lcom/google/common/hash/Striped64$Cell;->value:J
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method final retryUpdate(J[IZ)V
.locals 16
.param p3 # [I
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
move-object/from16 v1, p0
move-wide/from16 v2, p1
const/4 v0, 0x1
const/4 v4, 0x0
if-nez p3, :cond_1
.line 1
sget-object v5, Lcom/google/common/hash/Striped64;->threadHashCode:Ljava/lang/ThreadLocal;
new-array v6, v0, [I
invoke-virtual {v5, v6}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
.line 2
sget-object v5, Lcom/google/common/hash/Striped64;->rng:Ljava/util/Random;
invoke-virtual {v5}, Ljava/util/Random;->nextInt()I
move-result v5
if-nez v5, :cond_0
move v5, v0
:cond_0
aput v5, v6, v4
goto :goto_0
.line 3
:cond_1
aget v5, p3, v4
move-object/from16 v6, p3
:goto_0
move v8, v4
move v7, v5
move/from16 v5, p4
.line 4
:cond_2
:goto_1
iget-object v9, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-eqz v9, :cond_d
array-length v10, v9
if-lez v10, :cond_d
add-int/lit8 v11, v10, -0x1
and-int/2addr v11, v7
.line 5
aget-object v11, v9, v11
if-nez v11, :cond_5
.line 6
iget v9, v1, Lcom/google/common/hash/Striped64;->busy:I
if-nez v9, :cond_4
.line 7
new-instance v9, Lcom/google/common/hash/Striped64$Cell;
invoke-direct {v9, v2, v3}, Lcom/google/common/hash/Striped64$Cell;-><init>(J)V
.line 8
iget v10, v1, Lcom/google/common/hash/Striped64;->busy:I
if-nez v10, :cond_4
invoke-virtual/range {p0 .. p0}, Lcom/google/common/hash/Striped64;->casBusy()Z
move-result v10
if-eqz v10, :cond_4
.line 9
:try_start_0
iget-object v10, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-eqz v10, :cond_3
array-length v11, v10
if-lez v11, :cond_3
add-int/lit8 v11, v11, -0x1
and-int/2addr v11, v7
aget-object v12, v10, v11
if-nez v12, :cond_3
.line 10
aput-object v9, v10, v11
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
move v9, v0
goto :goto_2
:cond_3
move v9, v4
.line 11
:goto_2
iput v4, v1, Lcom/google/common/hash/Striped64;->busy:I
if-eqz v9, :cond_2
goto/16 :goto_7
:catchall_0
move-exception v0
iput v4, v1, Lcom/google/common/hash/Striped64;->busy:I
.line 12
throw v0
:cond_4
:goto_3
move v8, v4
goto :goto_5
:cond_5
if-nez v5, :cond_6
move v5, v0
goto :goto_5
.line 13
:cond_6
iget-wide v12, v11, Lcom/google/common/hash/Striped64$Cell;->value:J
invoke-virtual {v1, v12, v13, v2, v3}, Lcom/google/common/hash/Striped64;->fn(JJ)J
move-result-wide v14
invoke-virtual {v11, v12, v13, v14, v15}, Lcom/google/common/hash/Striped64$Cell;->cas(JJ)Z
move-result v11
if-eqz v11, :cond_7
goto/16 :goto_7
.line 14
:cond_7
sget v11, Lcom/google/common/hash/Striped64;->NCPU:I
if-ge v10, v11, :cond_4
iget-object v11, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-eq v11, v9, :cond_8
goto :goto_3
:cond_8
if-nez v8, :cond_9
move v8, v0
goto :goto_5
.line 15
:cond_9
iget v11, v1, Lcom/google/common/hash/Striped64;->busy:I
if-nez v11, :cond_c
invoke-virtual/range {p0 .. p0}, Lcom/google/common/hash/Striped64;->casBusy()Z
move-result v11
if-eqz v11, :cond_c
.line 16
:try_start_1
iget-object v8, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-ne v8, v9, :cond_b
shl-int/lit8 v8, v10, 0x1
.line 17
new-array v8, v8, [Lcom/google/common/hash/Striped64$Cell;
move v11, v4
:goto_4
if-ge v11, v10, :cond_a
.line 18
aget-object v12, v9, v11
aput-object v12, v8, v11
add-int/lit8 v11, v11, 0x1
goto :goto_4
.line 19
:cond_a
iput-object v8, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
.line 20
:cond_b
iput v4, v1, Lcom/google/common/hash/Striped64;->busy:I
move v8, v4
goto/16 :goto_1
:catchall_1
move-exception v0
iput v4, v1, Lcom/google/common/hash/Striped64;->busy:I
.line 21
throw v0
:cond_c
:goto_5
shl-int/lit8 v9, v7, 0xd
xor-int/2addr v7, v9
ushr-int/lit8 v9, v7, 0x11
xor-int/2addr v7, v9
shl-int/lit8 v9, v7, 0x5
xor-int/2addr v7, v9
.line 22
aput v7, v6, v4
goto/16 :goto_1
.line 23
:cond_d
iget v10, v1, Lcom/google/common/hash/Striped64;->busy:I
if-nez v10, :cond_f
iget-object v10, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-ne v10, v9, :cond_f
invoke-virtual/range {p0 .. p0}, Lcom/google/common/hash/Striped64;->casBusy()Z
move-result v10
if-eqz v10, :cond_f
.line 24
:try_start_2
iget-object v10, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
if-ne v10, v9, :cond_e
const/4 v9, 0x2
new-array v9, v9, [Lcom/google/common/hash/Striped64$Cell;
and-int/lit8 v10, v7, 0x1
.line 25
new-instance v11, Lcom/google/common/hash/Striped64$Cell;
invoke-direct {v11, v2, v3}, Lcom/google/common/hash/Striped64$Cell;-><init>(J)V
aput-object v11, v9, v10
.line 26
iput-object v9, v1, Lcom/google/common/hash/Striped64;->cells:[Lcom/google/common/hash/Striped64$Cell;
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
move v9, v0
goto :goto_6
:cond_e
move v9, v4
.line 27
:goto_6
iput v4, v1, Lcom/google/common/hash/Striped64;->busy:I
if-eqz v9, :cond_2
goto :goto_7
:catchall_2
move-exception v0
iput v4, v1, Lcom/google/common/hash/Striped64;->busy:I
.line 28
throw v0
.line 29
:cond_f
iget-wide v9, v1, Lcom/google/common/hash/Striped64;->base:J
invoke-virtual {v1, v9, v10, v2, v3}, Lcom/google/common/hash/Striped64;->fn(JJ)J
move-result-wide v11
invoke-virtual {v1, v9, v10, v11, v12}, Lcom/google/common/hash/Striped64;->casBase(JJ)Z
move-result v9
if-eqz v9, :cond_2
:goto_7
return-void
.end method
@@ -0,0 +1,11 @@
.class interface abstract synthetic Lcom/google/common/hash/package-info;
.super Ljava/lang/Object;
.source "package-info.java"
# annotations
.annotation runtime Lcom/google/errorprone/annotations/CheckReturnValue;
.end annotation
.annotation runtime Ljavax/annotation/ParametersAreNonnullByDefault;
.end annotation