public abstract class com.google.common.hash.HashCode
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.google.common.hash.HashCode
super_class: java.lang.Object
{
private static final char[] hexDigits;
descriptor: [C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "0123456789abcdef"
invokevirtual java.lang.String.toCharArray:()[C
putstatic com.google.common.hash.HashCode.hexDigits:[C
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/hash/HashCode;
public abstract int bits();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract int asInt();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract long asLong();
descriptor: ()J
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract long padToLong();
descriptor: ()J
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract byte[] asBytes();
descriptor: ()[B
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public int writeBytesTo(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_2
newarray 10
dup
iconst_0
iload 3
iastore
dup
iconst_1
aload 0
invokevirtual com.google.common.hash.HashCode.bits:()I
bipush 8
idiv
iastore
invokestatic com.google.common.primitives.Ints.min:([I)I
istore 3
1: iload 2
iload 2
iload 3
iadd
aload 1
arraylength
invokestatic com.google.common.base.Preconditions.checkPositionIndexes:(III)V
2: aload 0
aload 1
iload 2
iload 3
invokevirtual com.google.common.hash.HashCode.writeBytesToImpl:([BII)V
3: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/hash/HashCode;
0 4 1 dest [B
0 4 2 offset I
0 4 3 maxLength I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
dest
offset
maxLength
abstract void writeBytesToImpl(byte[], int, int);
descriptor: ([BII)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
dest
offset
maxLength
byte[] getBytesInternal();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.hash.HashCode.asBytes:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/hash/HashCode;
abstract boolean equalsSameBits(com.google.common.hash.HashCode);
descriptor: (Lcom/google/common/hash/HashCode;)Z
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
that
public static com.google.common.hash.HashCode fromInt(int);
descriptor: (I)Lcom/google/common/hash/HashCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.hash.HashCode$IntHashCode
dup
iload 0
invokespecial com.google.common.hash.HashCode$IntHashCode.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 hash I
MethodParameters:
Name Flags
hash
public static com.google.common.hash.HashCode fromLong(long);
descriptor: (J)Lcom/google/common/hash/HashCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new com.google.common.hash.HashCode$LongHashCode
dup
lload 0
invokespecial com.google.common.hash.HashCode$LongHashCode.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 hash J
MethodParameters:
Name Flags
hash
public static com.google.common.hash.HashCode fromBytes(byte[]);
descriptor: ([B)Lcom/google/common/hash/HashCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
if_icmplt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "A HashCode must contain at least 1 byte."
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/Object;)V
3: aload 0
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
invokestatic com.google.common.hash.HashCode.fromBytesNoCopy:([B)Lcom/google/common/hash/HashCode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bytes [B
MethodParameters:
Name Flags
bytes
static com.google.common.hash.HashCode fromBytesNoCopy(byte[]);
descriptor: ([B)Lcom/google/common/hash/HashCode;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.hash.HashCode$BytesHashCode
dup
aload 0
invokespecial com.google.common.hash.HashCode$BytesHashCode.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 bytes [B
MethodParameters:
Name Flags
bytes
public static com.google.common.hash.HashCode fromString(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/google/common/hash/HashCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "input string (%s) must have at least 2 characters"
aload 0
3: invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;Ljava/lang/Object;)V
4: aload 0
invokevirtual java.lang.String.length:()I
iconst_2
irem
ifne 5
iconst_1
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
6: StackMap locals:
StackMap stack: int
ldc "input string (%s) must have an even number of characters"
7: aload 0
8: invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;Ljava/lang/Object;)V
9: aload 0
invokevirtual java.lang.String.length:()I
iconst_2
idiv
newarray 8
astore 1
start local 1 10: iconst_0
istore 2
start local 2 11: goto 16
12: StackMap locals: byte[] int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.google.common.hash.HashCode.decode:(C)I
iconst_4
ishl
istore 3
start local 3 13: aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.google.common.hash.HashCode.decode:(C)I
istore 4
start local 4 14: aload 1
iload 2
iconst_2
idiv
iload 3
iload 4
iadd
i2b
bastore
end local 4 end local 3 15: iinc 2 2
StackMap locals:
StackMap stack:
16: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 12
end local 2 17: aload 1
invokestatic com.google.common.hash.HashCode.fromBytesNoCopy:([B)Lcom/google/common/hash/HashCode;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 string Ljava/lang/String;
10 18 1 bytes [B
11 17 2 i I
13 15 3 ch1 I
14 15 4 ch2 I
MethodParameters:
Name Flags
string
private static int decode(char);
descriptor: (C)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iload 0
bipush 48
if_icmplt 2
iload 0
bipush 57
if_icmpgt 2
1: iload 0
bipush 48
isub
ireturn
2: StackMap locals:
StackMap stack:
iload 0
bipush 97
if_icmplt 4
iload 0
bipush 102
if_icmpgt 4
3: iload 0
bipush 97
isub
bipush 10
iadd
ireturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Illegal hexadecimal character: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 ch C
MethodParameters:
Name Flags
ch
public final boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.google.common.hash.HashCode
ifeq 4
1: aload 1
checkcast com.google.common.hash.HashCode
astore 2
start local 2 2: aload 0
invokevirtual com.google.common.hash.HashCode.bits:()I
aload 2
invokevirtual com.google.common.hash.HashCode.bits:()I
if_icmpne 3
aload 0
aload 2
invokevirtual com.google.common.hash.HashCode.equalsSameBits:(Lcom/google/common/hash/HashCode;)Z
ifeq 3
iconst_1
ireturn
StackMap locals: com.google.common.hash.HashCode
StackMap stack:
3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/hash/HashCode;
0 5 1 object Ljava/lang/Object;
2 4 2 that Lcom/google/common/hash/HashCode;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
object
public final int hashCode();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.hash.HashCode.bits:()I
bipush 32
if_icmplt 2
1: aload 0
invokevirtual com.google.common.hash.HashCode.asInt:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.hash.HashCode.getBytesInternal:()[B
astore 1
start local 1 3: aload 1
iconst_0
baload
sipush 255
iand
istore 2
start local 2 4: iconst_1
istore 3
start local 3 5: goto 8
6: StackMap locals: byte[] int int
StackMap stack:
iload 2
aload 1
iload 3
baload
sipush 255
iand
iload 3
bipush 8
imul
ishl
ior
istore 2
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 1
arraylength
if_icmplt 6
end local 3 9: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/google/common/hash/HashCode;
3 10 1 bytes [B
4 10 2 val I
5 9 3 i I
public final java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.hash.HashCode.getBytesInternal:()[B
astore 1
start local 1 1: new java.lang.StringBuilder
dup
iconst_2
aload 1
arraylength
imul
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 2: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 6
StackMap locals: com.google.common.hash.HashCode byte[] java.lang.StringBuilder top int int byte[]
StackMap stack:
3: aload 6
iload 4
baload
istore 3
start local 3 4: aload 2
getstatic com.google.common.hash.HashCode.hexDigits:[C
iload 3
iconst_4
ishr
bipush 15
iand
caload
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
getstatic com.google.common.hash.HashCode.hexDigits:[C
iload 3
bipush 15
iand
caload
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 3 5: iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 5
if_icmplt 3
7: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/hash/HashCode;
1 8 1 bytes [B
2 8 2 sb Ljava/lang/StringBuilder;
4 5 3 b B
}
SourceFile: "HashCode.java"
NestMembers:
com.google.common.hash.HashCode$BytesHashCode com.google.common.hash.HashCode$IntHashCode com.google.common.hash.HashCode$LongHashCode
InnerClasses:
private final BytesHashCode = com.google.common.hash.HashCode$BytesHashCode of com.google.common.hash.HashCode
private final IntHashCode = com.google.common.hash.HashCode$IntHashCode of com.google.common.hash.HashCode
private final LongHashCode = com.google.common.hash.HashCode$LongHashCode of com.google.common.hash.HashCode
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()