今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
2.9 KiB

.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 = 0x1a
name = "IntHashCode"
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field final hash:I
# direct methods
.method constructor <init>(I)V
.locals 0
.prologue
.line 120
invoke-direct {p0}, Lcom/google/common/hash/HashCode;-><init>()V
.line 121
iput p1, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
.line 122
return-void
.end method
# virtual methods
.method public asBytes()[B
.locals 3
.prologue
.line 131
const/4 v0, 0x4
new-array v0, v0, [B
const/4 v1, 0x0
iget v2, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
int-to-byte v2, v2
aput-byte v2, v0, v1
const/4 v1, 0x1
iget v2, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
shr-int/lit8 v2, v2, 0x8
int-to-byte v2, v2
aput-byte v2, v0, v1
const/4 v1, 0x2
iget v2, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
shr-int/lit8 v2, v2, 0x10
int-to-byte v2, v2
aput-byte v2, v0, v1
const/4 v1, 0x3
iget v2, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
shr-int/lit8 v2, v2, 0x18
int-to-byte v2, v2
aput-byte v2, v0, v1
return-object v0
.end method
.method public asInt()I
.locals 1
.prologue
.line 140
iget v0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I
return v0
.end method
.method public asLong()J
.locals 2
.prologue
.line 145
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
.prologue
.line 126
const/16 v0, 0x20
return v0
.end method
.method public padToLong()J
.locals 2
.prologue
.line 150
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 writeBytesToImpl([BII)V
.locals 4
.prologue
.line 155
const/4 v0, 0x0
:goto_0
if-ge v0, p3, :cond_0
.line 156
add-int v1, p2, v0
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
.line 155
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 158
:cond_0
return-void
.end method