class com.google.common.collect.Ordering$ArbitraryOrdering extends com.google.common.collect.Ordering<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.google.common.collect.Ordering$ArbitraryOrdering
super_class: com.google.common.collect.Ordering
{
private final java.util.concurrent.atomic.AtomicInteger counter;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.ConcurrentMap<java.lang.Object, java.lang.Integer> uids;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Object;Ljava/lang/Integer;>;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.google.common.collect.Ordering.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield com.google.common.collect.Ordering$ArbitraryOrdering.counter:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
3: new com.google.common.collect.MapMaker
dup
invokespecial com.google.common.collect.MapMaker.<init>:()V
invokestatic com.google.common.collect.Platform.tryWeakKeys:(Lcom/google/common/collect/MapMaker;)Lcom/google/common/collect/MapMaker;
invokevirtual com.google.common.collect.MapMaker.makeMap:()Ljava/util/concurrent/ConcurrentMap;
putfield com.google.common.collect.Ordering$ArbitraryOrdering.uids:Ljava/util/concurrent/ConcurrentMap;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/Ordering$ArbitraryOrdering;
private java.lang.Integer getUid(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Integer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.collect.Ordering$ArbitraryOrdering.uids:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 1: aload 2
ifnonnull 6
2: aload 0
getfield com.google.common.collect.Ordering$ArbitraryOrdering.counter:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
3: aload 0
getfield com.google.common.collect.Ordering$ArbitraryOrdering.uids:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 3
astore 2
end local 3 6: StackMap locals: java.lang.Integer
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/collect/Ordering$ArbitraryOrdering;
0 7 1 obj Ljava/lang/Object;
1 7 2 uid Ljava/lang/Integer;
4 6 3 alreadySet Ljava/lang/Integer;
MethodParameters:
Name Flags
obj
public int compare(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
if_acmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 2
ifnonnull 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.google.common.collect.Ordering$ArbitraryOrdering.identityHashCode:(Ljava/lang/Object;)I
istore 3
start local 3 7: aload 0
aload 2
invokevirtual com.google.common.collect.Ordering$ArbitraryOrdering.identityHashCode:(Ljava/lang/Object;)I
istore 4
start local 4 8: iload 3
iload 4
if_icmpeq 12
9: iload 3
iload 4
if_icmpge 10
iconst_m1
goto 11
StackMap locals: int int
StackMap stack:
10: iconst_1
StackMap locals:
StackMap stack: int
11: ireturn
12: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.google.common.collect.Ordering$ArbitraryOrdering.getUid:(Ljava/lang/Object;)Ljava/lang/Integer;
aload 0
aload 2
invokevirtual com.google.common.collect.Ordering$ArbitraryOrdering.getUid:(Ljava/lang/Object;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.compareTo:(Ljava/lang/Integer;)I
istore 5
start local 5 13: iload 5
ifne 15
14: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
15: StackMap locals: int
StackMap stack:
iload 5
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/google/common/collect/Ordering$ArbitraryOrdering;
0 16 1 left Ljava/lang/Object;
0 16 2 right Ljava/lang/Object;
7 16 3 leftCode I
8 16 4 rightCode I
13 16 5 result I
MethodParameters:
Name Flags
left
right
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "Ordering.arbitrary()"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/Ordering$ArbitraryOrdering;
int identityHashCode(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/Ordering$ArbitraryOrdering;
0 1 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
}
Signature: Lcom/google/common/collect/Ordering<Ljava/lang/Object;>;
SourceFile: "Ordering.java"
NestHost: com.google.common.collect.Ordering
InnerClasses:
ArbitraryOrdering = com.google.common.collect.Ordering$ArbitraryOrdering of com.google.common.collect.Ordering
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()