public final class com.google.common.primitives.UnsignedBytes
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.primitives.UnsignedBytes
super_class: java.lang.Object
{
public static final byte MAX_POWER_OF_TWO;
descriptor: B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -128
public static final byte MAX_VALUE;
descriptor: B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final int UNSIGNED_MASK;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 255
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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/primitives/UnsignedBytes;
public static int toInt(byte);
descriptor: (B)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
sipush 255
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value B
MethodParameters:
Name Flags
value
public static byte checkedCast(long);
descriptor: (J)B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
bipush 8
lshr
lconst_0
lcmp
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "out of range: %s"
lload 0
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;J)V
3: lload 0
l2i
i2b
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 value J
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
value
public static byte saturatedCast(long);
descriptor: (J)B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
iconst_m1
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
i2l
lcmp
ifle 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
lload 0
lconst_0
lcmp
ifge 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
lload 0
l2i
i2b
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 value J
MethodParameters:
Name Flags
value
public static int compare(byte, byte);
descriptor: (BB)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
iload 1
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
isub
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a B
0 1 1 b B
MethodParameters:
Name Flags
a
b
public static byte min(byte[]);
descriptor: ([B)B
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
arraylength
ifle 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkArgument:(Z)V
3: aload 0
iconst_0
baload
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
istore 1
start local 1 4: iconst_1
istore 2
start local 2 5: goto 10
6: StackMap locals: int int
StackMap stack:
aload 0
iload 2
baload
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
istore 3
start local 3 7: iload 3
iload 1
if_icmpge 9
8: iload 3
istore 1
end local 3 9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 0
arraylength
if_icmplt 6
end local 2 11: iload 1
i2b
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 array [B
4 12 1 min I
5 11 2 i I
7 9 3 next I
MethodParameters:
Name Flags
array
public static byte max(byte[]);
descriptor: ([B)B
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
arraylength
ifle 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkArgument:(Z)V
3: aload 0
iconst_0
baload
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
istore 1
start local 1 4: iconst_1
istore 2
start local 2 5: goto 10
6: StackMap locals: int int
StackMap stack:
aload 0
iload 2
baload
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
istore 3
start local 3 7: iload 3
iload 1
if_icmple 9
8: iload 3
istore 1
end local 3 9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 0
arraylength
if_icmplt 6
end local 2 11: iload 1
i2b
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 array [B
4 12 1 max I
5 11 2 i I
7 9 3 next I
MethodParameters:
Name Flags
array
public static java.lang.String toString(byte);
descriptor: (B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 10
invokestatic com.google.common.primitives.UnsignedBytes.toString:(BI)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x B
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
x
public static java.lang.String toString(byte, int);
descriptor: (BI)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_2
if_icmplt 1
iload 1
bipush 36
if_icmpgt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
2: StackMap locals:
StackMap stack: int
ldc "radix (%s) must be between Character.MIN_RADIX and Character.MAX_RADIX"
3: iload 1
4: invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;I)V
5: iload 0
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
iload 1
invokestatic java.lang.Integer.toString:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 x B
0 6 1 radix I
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
MethodParameters:
Name Flags
x
radix
public static byte parseUnsignedByte(java.lang.String);
descriptor: (Ljava/lang/String;)B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 10
invokestatic com.google.common.primitives.UnsignedBytes.parseUnsignedByte:(Ljava/lang/String;I)B
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 string Ljava/lang/String;
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
string
public static byte parseUnsignedByte(java.lang.String, int);
descriptor: (Ljava/lang/String;I)B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
iload 1
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 2
start local 2 1: iload 2
bipush 8
ishr
ifne 3
2: iload 2
i2b
ireturn
3: StackMap locals: int
StackMap stack:
new java.lang.NumberFormatException
dup
new java.lang.StringBuilder
dup
ldc "out of range: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.NumberFormatException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 string Ljava/lang/String;
0 4 1 radix I
1 4 2 parse I
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
string
radix
public static java.lang.String join(java.lang.String, byte[]);
descriptor: (Ljava/lang/String;[B)Ljava/lang/String;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
arraylength
ifne 3
2: ldc ""
areturn
3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
arraylength
iconst_3
aload 0
invokevirtual java.lang.String.length:()I
iadd
imul
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 4: aload 2
aload 1
iconst_0
baload
invokestatic com.google.common.primitives.UnsignedBytes.toInt:(B)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
5: iconst_1
istore 3
start local 3 6: goto 9
7: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 2
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
iload 3
baload
invokestatic com.google.common.primitives.UnsignedBytes.toString:(B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 1
arraylength
if_icmplt 7
end local 3 10: 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 11 0 separator Ljava/lang/String;
0 11 1 array [B
4 11 2 builder Ljava/lang/StringBuilder;
6 10 3 i I
MethodParameters:
Name Flags
separator
array
public static java.util.Comparator<byte[]> lexicographicalComparator();
descriptor: ()Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder.BEST_COMPARATOR:Ljava/util/Comparator;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Comparator<[B>;
static java.util.Comparator<byte[]> lexicographicalComparatorJavaImpl();
descriptor: ()Ljava/util/Comparator;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$PureJavaComparator.INSTANCE:Lcom/google/common/primitives/UnsignedBytes$LexicographicalComparatorHolder$PureJavaComparator;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Comparator<[B>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
private static byte flip(byte);
descriptor: (B)B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
sipush 128
ixor
i2b
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 b B
MethodParameters:
Name Flags
b
public static void sort(byte[]);
descriptor: ([B)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
iconst_0
aload 0
arraylength
invokestatic com.google.common.primitives.UnsignedBytes.sort:([BII)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 array [B
MethodParameters:
Name Flags
array
public static void sort(byte[], int, int);
descriptor: ([BII)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iload 1
iload 2
aload 0
arraylength
invokestatic com.google.common.base.Preconditions.checkPositionIndexes:(III)V
2: iload 1
istore 3
start local 3 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
iload 3
aload 0
iload 3
baload
invokestatic com.google.common.primitives.UnsignedBytes.flip:(B)B
bastore
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 2
if_icmplt 4
end local 3 7: aload 0
iload 1
iload 2
invokestatic java.util.Arrays.sort:([BII)V
8: iload 1
istore 3
start local 3 9: goto 12
10: StackMap locals:
StackMap stack:
aload 0
iload 3
aload 0
iload 3
baload
invokestatic com.google.common.primitives.UnsignedBytes.flip:(B)B
bastore
11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 2
if_icmplt 10
end local 3 13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 array [B
0 14 1 fromIndex I
0 14 2 toIndex I
3 7 3 i I
9 13 3 i I
MethodParameters:
Name Flags
array
fromIndex
toIndex
public static void sortDescending(byte[]);
descriptor: ([B)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
iconst_0
aload 0
arraylength
invokestatic com.google.common.primitives.UnsignedBytes.sortDescending:([BII)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 array [B
MethodParameters:
Name Flags
array
public static void sortDescending(byte[], int, int);
descriptor: ([BII)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: iload 1
iload 2
aload 0
arraylength
invokestatic com.google.common.base.Preconditions.checkPositionIndexes:(III)V
2: iload 1
istore 3
start local 3 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
iload 3
dup2
baload
bipush 127
ixor
i2b
bastore
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 2
if_icmplt 4
end local 3 7: aload 0
iload 1
iload 2
invokestatic java.util.Arrays.sort:([BII)V
8: iload 1
istore 3
start local 3 9: goto 12
10: StackMap locals:
StackMap stack:
aload 0
iload 3
dup2
baload
bipush 127
ixor
i2b
bastore
11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 2
if_icmplt 10
end local 3 13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 array [B
0 14 1 fromIndex I
0 14 2 toIndex I
3 7 3 i I
9 13 3 i I
MethodParameters:
Name Flags
array
fromIndex
toIndex
}
SourceFile: "UnsignedBytes.java"
NestMembers:
com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$PureJavaComparator com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1
InnerClasses:
LexicographicalComparatorHolder = com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder of com.google.common.primitives.UnsignedBytes
final PureJavaComparator = com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$PureJavaComparator of com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()