public final class com.google.common.graph.ElementOrder<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.graph.ElementOrder
super_class: java.lang.Object
{
private final com.google.common.graph.ElementOrder$Type type;
descriptor: Lcom/google/common/graph/ElementOrder$Type;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/google/common/graph/ElementOrder$Type;
private final java.util.Comparator<T> comparator;
descriptor: Ljava/util/Comparator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Comparator<TT;>;
RuntimeVisibleTypeAnnotations:
FIELD
org.checkerframework.checker.nullness.qual.Nullable()
private static volatile int[] $SWITCH_TABLE$com$google$common$graph$ElementOrder$Type;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private void <init>(com.google.common.graph.ElementOrder$Type, java.util.Comparator<T>);
descriptor: (Lcom/google/common/graph/ElementOrder$Type;Ljava/util/Comparator;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.common.graph.ElementOrder$Type
putfield com.google.common.graph.ElementOrder.type:Lcom/google/common/graph/ElementOrder$Type;
2: aload 0
aload 2
putfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
3: aload 1
getstatic com.google.common.graph.ElementOrder$Type.SORTED:Lcom/google/common/graph/ElementOrder$Type;
if_acmpne 4
iconst_1
goto 5
StackMap locals: com.google.common.graph.ElementOrder com.google.common.graph.ElementOrder$Type java.util.Comparator
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: aload 2
ifnull 6
iconst_1
goto 7
StackMap locals:
StackMap stack: int
6: iconst_0
StackMap locals: com.google.common.graph.ElementOrder com.google.common.graph.ElementOrder$Type java.util.Comparator
StackMap stack: int int
7: if_icmpne 8
iconst_1
goto 9
StackMap locals:
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/graph/ElementOrder<TT;>;
0 11 1 type Lcom/google/common/graph/ElementOrder$Type;
0 11 2 comparator Ljava/util/Comparator<TT;>;
Signature: (Lcom/google/common/graph/ElementOrder$Type;Ljava/util/Comparator<TT;>;)V
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
type
comparator
public static <S> com.google.common.graph.ElementOrder<S> unordered();
descriptor: ()Lcom/google/common/graph/ElementOrder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new com.google.common.graph.ElementOrder
dup
getstatic com.google.common.graph.ElementOrder$Type.UNORDERED:Lcom/google/common/graph/ElementOrder$Type;
aconst_null
invokespecial com.google.common.graph.ElementOrder.<init>:(Lcom/google/common/graph/ElementOrder$Type;Ljava/util/Comparator;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <S:Ljava/lang/Object;>()Lcom/google/common/graph/ElementOrder<TS;>;
public static <S> com.google.common.graph.ElementOrder<S> insertion();
descriptor: ()Lcom/google/common/graph/ElementOrder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new com.google.common.graph.ElementOrder
dup
getstatic com.google.common.graph.ElementOrder$Type.INSERTION:Lcom/google/common/graph/ElementOrder$Type;
aconst_null
invokespecial com.google.common.graph.ElementOrder.<init>:(Lcom/google/common/graph/ElementOrder$Type;Ljava/util/Comparator;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <S:Ljava/lang/Object;>()Lcom/google/common/graph/ElementOrder<TS;>;
public static <S extends java.lang.Comparable<? super S>> com.google.common.graph.ElementOrder<S> natural();
descriptor: ()Lcom/google/common/graph/ElementOrder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new com.google.common.graph.ElementOrder
dup
getstatic com.google.common.graph.ElementOrder$Type.SORTED:Lcom/google/common/graph/ElementOrder$Type;
invokestatic com.google.common.collect.Ordering.natural:()Lcom/google/common/collect/Ordering;
invokespecial com.google.common.graph.ElementOrder.<init>:(Lcom/google/common/graph/ElementOrder$Type;Ljava/util/Comparator;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <S::Ljava/lang/Comparable<-TS;>;>()Lcom/google/common/graph/ElementOrder<TS;>;
public static <S> com.google.common.graph.ElementOrder<S> sorted(java.util.Comparator<S>);
descriptor: (Ljava/util/Comparator;)Lcom/google/common/graph/ElementOrder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new com.google.common.graph.ElementOrder
dup
getstatic com.google.common.graph.ElementOrder$Type.SORTED:Lcom/google/common/graph/ElementOrder$Type;
aload 0
invokespecial com.google.common.graph.ElementOrder.<init>:(Lcom/google/common/graph/ElementOrder$Type;Ljava/util/Comparator;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 comparator Ljava/util/Comparator<TS;>;
Signature: <S:Ljava/lang/Object;>(Ljava/util/Comparator<TS;>;)Lcom/google/common/graph/ElementOrder<TS;>;
MethodParameters:
Name Flags
comparator
public com.google.common.graph.ElementOrder$Type type();
descriptor: ()Lcom/google/common/graph/ElementOrder$Type;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.graph.ElementOrder.type:Lcom/google/common/graph/ElementOrder$Type;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/ElementOrder<TT;>;
Signature: ()Lcom/google/common/graph/ElementOrder$Type;
public java.util.Comparator<T> comparator();
descriptor: ()Ljava/util/Comparator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
ifnull 2
1: aload 0
getfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
areturn
2: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "This ordering does not define a comparator."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/graph/ElementOrder<TT;>;
Signature: ()Ljava/util/Comparator<TT;>;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof com.google.common.graph.ElementOrder
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.google.common.graph.ElementOrder
astore 2
start local 2 5: aload 0
getfield com.google.common.graph.ElementOrder.type:Lcom/google/common/graph/ElementOrder$Type;
aload 2
getfield com.google.common.graph.ElementOrder.type:Lcom/google/common/graph/ElementOrder$Type;
if_acmpne 6
aload 0
getfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
aload 2
getfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
iconst_1
ireturn
StackMap locals: com.google.common.graph.ElementOrder
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/graph/ElementOrder<TT;>;
0 7 1 obj Ljava/lang/Object;
5 7 2 other Lcom/google/common/graph/ElementOrder<*>;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.google.common.graph.ElementOrder.type:Lcom/google/common/graph/ElementOrder$Type;
aastore
dup
iconst_1
aload 0
getfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
aastore
invokestatic com.google.common.base.Objects.hashCode:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/ElementOrder<TT;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.MoreObjects.toStringHelper:(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
ldc "type"
aload 0
getfield com.google.common.graph.ElementOrder.type:Lcom/google/common/graph/ElementOrder$Type;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.add:(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
astore 1
start local 1 1: aload 0
getfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
ifnull 3
2: aload 1
ldc "comparator"
aload 0
getfield com.google.common.graph.ElementOrder.comparator:Ljava/util/Comparator;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.add:(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
pop
3: StackMap locals: com.google.common.base.MoreObjects$ToStringHelper
StackMap stack:
aload 1
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/graph/ElementOrder<TT;>;
1 4 1 helper Lcom/google/common/base/MoreObjects$ToStringHelper;
<K extends T, V> java.util.Map<K, V> createMap(int);
descriptor: (I)Ljava/util/Map;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.google.common.graph.ElementOrder.$SWITCH_TABLE$com$google$common$graph$ElementOrder$Type:()[I
aload 0
getfield com.google.common.graph.ElementOrder.type:Lcom/google/common/graph/ElementOrder$Type;
invokevirtual com.google.common.graph.ElementOrder$Type.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 1
2: 2
3: 3
default: 4
}
1: StackMap locals:
StackMap stack:
iload 1
invokestatic com.google.common.collect.Maps.newHashMapWithExpectedSize:(I)Ljava/util/HashMap;
areturn
2: StackMap locals:
StackMap stack:
iload 1
invokestatic com.google.common.collect.Maps.newLinkedHashMapWithExpectedSize:(I)Ljava/util/LinkedHashMap;
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.graph.ElementOrder.comparator:()Ljava/util/Comparator;
invokestatic com.google.common.collect.Maps.newTreeMap:(Ljava/util/Comparator;)Ljava/util/TreeMap;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/graph/ElementOrder<TT;>;
0 5 1 expectedSize I
Signature: <K:TT;V:Ljava/lang/Object;>(I)Ljava/util/Map<TK;TV;>;
MethodParameters:
Name Flags
expectedSize
<T1 extends T> com.google.common.graph.ElementOrder<T1> cast();
descriptor: ()Lcom/google/common/graph/ElementOrder;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/ElementOrder<TT;>;
Signature: <T1:TT;>()Lcom/google/common/graph/ElementOrder<TT1;>;
static int[] $SWITCH_TABLE$com$google$common$graph$ElementOrder$Type();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic com.google.common.graph.ElementOrder.$SWITCH_TABLE$com$google$common$graph$ElementOrder$Type:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic com.google.common.graph.ElementOrder$Type.values:()[Lcom/google/common/graph/ElementOrder$Type;
arraylength
newarray 10
astore 0
2: aload 0
getstatic com.google.common.graph.ElementOrder$Type.INSERTION:Lcom/google/common/graph/ElementOrder$Type;
invokevirtual com.google.common.graph.ElementOrder$Type.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic com.google.common.graph.ElementOrder$Type.SORTED:Lcom/google/common/graph/ElementOrder$Type;
invokevirtual com.google.common.graph.ElementOrder$Type.ordinal:()I
iconst_3
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic com.google.common.graph.ElementOrder$Type.UNORDERED:Lcom/google/common/graph/ElementOrder$Type;
invokevirtual com.google.common.graph.ElementOrder$Type.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic com.google.common.graph.ElementOrder.$SWITCH_TABLE$com$google$common$graph$ElementOrder$Type:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ElementOrder.java"
NestMembers:
com.google.common.graph.ElementOrder$Type
InnerClasses:
public final ToStringHelper = com.google.common.base.MoreObjects$ToStringHelper of com.google.common.base.MoreObjects
public final Type = com.google.common.graph.ElementOrder$Type of com.google.common.graph.ElementOrder
RuntimeVisibleAnnotations:
com.google.errorprone.annotations.Immutable()
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()