.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 (I)V .locals 0 .line 122 invoke-direct {p0}, Lcom/google/common/hash/HashCode;->()V iput p1, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I return-void .end method # virtual methods .method public asBytes()[B .locals 3 const/4 v0, 0x4 new-array v0, v0, [B iget p0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I int-to-byte v1, p0 const/4 v2, 0x0 aput-byte v1, v0, v2 shr-int/lit8 v1, p0, 0x8 int-to-byte v1, v1 const/4 v2, 0x1 aput-byte v1, v0, v2 shr-int/lit8 v1, p0, 0x10 int-to-byte v1, v1 const/4 v2, 0x2 aput-byte v1, v0, v2 shr-int/lit8 p0, p0, 0x18 int-to-byte p0, p0 const/4 v1, 0x3 aput-byte p0, v0, v1 return-object v0 .end method .method public asInt()I .locals 0 iget p0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I return p0 .end method .method public asLong()J .locals 1 .line 143 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "this HashCode only has 32 bits; cannot create a long" invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method .method public bits()I .locals 0 const/16 p0, 0x20 return p0 .end method .method equalsSameBits(Lcom/google/common/hash/HashCode;)Z .locals 0 iget p0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I .line 160 invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->asInt()I move-result p1 if-ne p0, p1, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public padToLong()J .locals 2 iget p0, p0, Lcom/google/common/hash/HashCode$IntHashCode;->hash:I .line 148 invoke-static {p0}, Lcom/google/common/primitives/UnsignedInts;->toLong(I)J move-result-wide v0 return-wide v0 .end method .method writeBytesToImpl([BII)V .locals 4 const/4 v0, 0x0 :goto_0 if-ge v0, p3, :cond_0 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 .line 154 aput-byte v2, p1, v1 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_0 return-void .end method