public class com.carrotsearch.hppc.ShortHashSet extends com.carrotsearch.hppc.AbstractShortCollection implements com.carrotsearch.hppc.ShortLookupContainer, com.carrotsearch.hppc.ShortSet, com.carrotsearch.hppc.Preallocable, java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.carrotsearch.hppc.ShortHashSet
super_class: com.carrotsearch.hppc.AbstractShortCollection
{
public short[] keys;
descriptor: [S
flags: (0x0001) ACC_PUBLIC
protected int assigned;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int mask;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int keyMixer;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int resizeAt;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected boolean hasEmptyKey;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected double loadFactor;
descriptor: D
flags: (0x0004) ACC_PROTECTED
protected com.carrotsearch.hppc.HashOrderMixingStrategy orderMixer;
descriptor: Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
flags: (0x0004) ACC_PROTECTED
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/carrotsearch/hppc/ShortHashSet;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_4
ldc 0.75
invokespecial com.carrotsearch.hppc.ShortHashSet.<init>:(ID)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/carrotsearch/hppc/ShortHashSet;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc 0.75
invokespecial com.carrotsearch.hppc.ShortHashSet.<init>:(ID)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 2 1 expectedElements I
MethodParameters:
Name Flags
expectedElements
public void <init>(int, double);
descriptor: (ID)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
dload 2
invokestatic com.carrotsearch.hppc.HashOrderMixing.defaultStrategy:()Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
invokespecial com.carrotsearch.hppc.ShortHashSet.<init>:(IDLcom/carrotsearch/hppc/HashOrderMixingStrategy;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 2 1 expectedElements I
0 2 2 loadFactor D
MethodParameters:
Name Flags
expectedElements
loadFactor
public void <init>(int, double, com.carrotsearch.hppc.HashOrderMixingStrategy);
descriptor: (IDLcom/carrotsearch/hppc/HashOrderMixingStrategy;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
invokespecial com.carrotsearch.hppc.AbstractShortCollection.<init>:()V
1: aload 0
aload 4
putfield com.carrotsearch.hppc.ShortHashSet.orderMixer:Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
2: aload 0
aload 0
dload 2
invokevirtual com.carrotsearch.hppc.ShortHashSet.verifyLoadFactor:(D)D
putfield com.carrotsearch.hppc.ShortHashSet.loadFactor:D
3: aload 0
iload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.ensureCapacity:(I)V
4: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 5 1 expectedElements I
0 5 2 loadFactor D
0 5 4 orderMixer Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
MethodParameters:
Name Flags
expectedElements
loadFactor
orderMixer
public void <init>(com.carrotsearch.hppc.ShortContainer);
descriptor: (Lcom/carrotsearch/hppc/ShortContainer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface com.carrotsearch.hppc.ShortContainer.size:()I
invokespecial com.carrotsearch.hppc.ShortHashSet.<init>:(I)V
1: aload 0
aload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.addAll:(Lcom/carrotsearch/hppc/ShortContainer;)I
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 3 1 container Lcom/carrotsearch/hppc/ShortContainer;
MethodParameters:
Name Flags
container
public boolean add(short);
descriptor: (S)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: iload 1
ifne 7
1: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 2
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
iconst_1
iadd
saload
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 3
iconst_0
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: istore 2
start local 2 5: aload 0
iconst_1
putfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
6: iload 2
ireturn
end local 2 7: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 8: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 3
start local 3 9: aload 0
iload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.hashKey:(S)I
iload 3
iand
istore 4
start local 4 10: goto 14
start local 5 11: StackMap locals: com.carrotsearch.hppc.ShortHashSet int short[] int int int
StackMap stack:
iload 5
iload 1
if_icmpne 13
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
iload 4
iconst_1
iadd
iload 3
iand
istore 4
end local 5 14: StackMap locals:
StackMap stack:
aload 2
iload 4
saload
dup
istore 5
start local 5 15: ifne 11
16: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.assigned:I
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.resizeAt:I
if_icmpne 19
17: aload 0
iload 4
iload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.allocateThenInsertThenRehash:(IS)V
18: goto 20
19: StackMap locals: int
StackMap stack:
aload 2
iload 4
iload 1
sastore
20: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.carrotsearch.hppc.ShortHashSet.assigned:I
iconst_1
iadd
putfield com.carrotsearch.hppc.ShortHashSet.assigned:I
21: iconst_1
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 22 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 22 1 key S
5 7 2 added Z
8 22 2 keys [S
9 22 3 mask I
10 22 4 slot I
11 14 5 existing S
15 22 5 existing S
MethodParameters:
Name Flags
key
public final int addAll(short[]);
descriptor: ([S)I
flags: (0x0091) ACC_PUBLIC, ACC_FINAL, ACC_VARARGS
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
aload 1
arraylength
invokevirtual com.carrotsearch.hppc.ShortHashSet.ensureCapacity:(I)V
1: iconst_0
istore 2
start local 2 2: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: com.carrotsearch.hppc.ShortHashSet short[] int top int int short[]
StackMap stack:
3: aload 6
iload 4
saload
istore 3
start local 3 4: aload 0
iload 3
invokevirtual com.carrotsearch.hppc.ShortHashSet.add:(S)Z
ifeq 6
5: iinc 2 1
end local 3 6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 3
8: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 9 1 elements [S
2 9 2 count I
4 6 3 e S
MethodParameters:
Name Flags
elements
public int addAll(com.carrotsearch.hppc.ShortContainer);
descriptor: (Lcom/carrotsearch/hppc/ShortContainer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface com.carrotsearch.hppc.ShortContainer.size:()I
invokevirtual com.carrotsearch.hppc.ShortHashSet.ensureCapacity:(I)V
1: aload 0
aload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.addAll:(Ljava/lang/Iterable;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 2 1 container Lcom/carrotsearch/hppc/ShortContainer;
MethodParameters:
Name Flags
container
public int addAll(java.lang.Iterable<? extends com.carrotsearch.hppc.cursors.ShortCursor>);
descriptor: (Ljava/lang/Iterable;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: com.carrotsearch.hppc.ShortHashSet java.lang.Iterable int top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.carrotsearch.hppc.cursors.ShortCursor
astore 3
start local 3 3: aload 0
aload 3
getfield com.carrotsearch.hppc.cursors.ShortCursor.value:S
invokevirtual com.carrotsearch.hppc.ShortHashSet.add:(S)Z
ifeq 5
4: iinc 2 1
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 7 1 iterable Ljava/lang/Iterable<+Lcom/carrotsearch/hppc/cursors/ShortCursor;>;
1 7 2 count I
3 5 3 cursor Lcom/carrotsearch/hppc/cursors/ShortCursor;
Signature: (Ljava/lang/Iterable<+Lcom/carrotsearch/hppc/cursors/ShortCursor;>;)I
MethodParameters:
Name Flags
iterable
public short[] toArray();
descriptor: ()[S
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.size:()I
newarray 9
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 4
3: aload 1
iload 2
iinc 2 1
iconst_0
sastore
4: StackMap locals: short[] int
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 5
start local 5 7: goto 12
8: StackMap locals: short[] int int
StackMap stack:
aload 3
iload 4
saload
dup
istore 6
start local 6 9: ifeq 11
10: aload 1
iload 2
iinc 2 1
iload 6
sastore
end local 6 11: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
12: iload 4
iload 5
if_icmple 8
end local 5 end local 4 13: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/carrotsearch/hppc/ShortHashSet;
1 14 1 cloned [S
2 14 2 j I
5 14 3 keys [S
6 13 4 slot I
7 13 5 max I
9 11 6 existing S
public boolean remove(short);
descriptor: (S)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: iload 1
ifne 4
1: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
istore 2
start local 2 2: aload 0
iconst_0
putfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
3: iload 2
ireturn
end local 2 4: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 5: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 3
start local 3 6: aload 0
iload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.hashKey:(S)I
iload 3
iand
istore 4
start local 4 7: goto 12
start local 5 8: StackMap locals: com.carrotsearch.hppc.ShortHashSet int short[] int int int
StackMap stack:
iload 5
iload 1
if_icmpne 11
9: aload 0
iload 4
invokevirtual com.carrotsearch.hppc.ShortHashSet.shiftConflictingKeys:(I)V
10: iconst_1
ireturn
11: StackMap locals:
StackMap stack:
iload 4
iconst_1
iadd
iload 3
iand
istore 4
end local 5 12: StackMap locals:
StackMap stack:
aload 2
iload 4
saload
dup
istore 5
start local 5 13: ifne 8
14: iconst_0
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 15 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 15 1 key S
2 4 2 hadEmptyKey Z
5 15 2 keys [S
6 15 3 mask I
7 15 4 slot I
8 12 5 existing S
13 15 5 existing S
MethodParameters:
Name Flags
key
public int removeAll(short);
descriptor: (S)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.remove:(S)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 3 1 key S
MethodParameters:
Name Flags
key
public int removeAll(com.carrotsearch.hppc.predicates.ShortPredicate);
descriptor: (Lcom/carrotsearch/hppc/predicates/ShortPredicate;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.size:()I
istore 2
start local 2 1: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 4
2: aload 1
iconst_0
invokeinterface com.carrotsearch.hppc.predicates.ShortPredicate.apply:(S)Z
ifeq 4
3: aload 0
iconst_0
putfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
4: StackMap locals: int
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 5
start local 5 7: goto 14
8: StackMap locals: short[] int int
StackMap stack:
aload 3
iload 4
saload
dup
istore 6
start local 6 9: ifeq 13
10: aload 1
iload 6
invokeinterface com.carrotsearch.hppc.predicates.ShortPredicate.apply:(S)Z
ifeq 13
11: aload 0
iload 4
invokevirtual com.carrotsearch.hppc.ShortHashSet.shiftConflictingKeys:(I)V
12: goto 14
13: StackMap locals: int
StackMap stack:
iinc 4 1
end local 6 14: StackMap locals:
StackMap stack:
iload 4
iload 5
if_icmple 8
end local 5 end local 4 15: iload 2
aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.size:()I
isub
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 16 1 predicate Lcom/carrotsearch/hppc/predicates/ShortPredicate;
1 16 2 before I
5 16 3 keys [S
6 15 4 slot I
7 15 5 max I
9 14 6 existing S
MethodParameters:
Name Flags
predicate
public boolean contains(short);
descriptor: (S)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: iload 1
ifne 2
1: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 3: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 3
start local 3 4: aload 0
iload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.hashKey:(S)I
iload 3
iand
istore 4
start local 4 5: goto 9
start local 5 6: StackMap locals: com.carrotsearch.hppc.ShortHashSet int short[] int int int
StackMap stack:
iload 5
iload 1
if_icmpne 8
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack:
iload 4
iconst_1
iadd
iload 3
iand
istore 4
end local 5 9: StackMap locals:
StackMap stack:
aload 2
iload 4
saload
dup
istore 5
start local 5 10: ifne 6
11: iconst_0
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 12 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 12 1 key S
3 12 2 keys [S
4 12 3 mask I
5 12 4 slot I
6 9 5 existing S
10 12 5 existing S
MethodParameters:
Name Flags
key
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield com.carrotsearch.hppc.ShortHashSet.assigned:I
1: aload 0
iconst_0
putfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
2: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iconst_0
invokestatic java.util.Arrays.fill:([SS)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/carrotsearch/hppc/ShortHashSet;
public void release();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield com.carrotsearch.hppc.ShortHashSet.assigned:I
1: aload 0
iconst_0
putfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
2: aload 0
aconst_null
putfield com.carrotsearch.hppc.ShortHashSet.keys:[S
3: aload 0
iconst_4
invokevirtual com.carrotsearch.hppc.ShortHashSet.ensureCapacity:(I)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/carrotsearch/hppc/ShortHashSet;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.size:()I
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/carrotsearch/hppc/ShortHashSet;
public void ensureCapacity(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.resizeAt:I
if_icmpgt 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
ifnonnull 5
1: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 2: aload 0
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.loadFactor:D
invokestatic com.carrotsearch.hppc.HashContainers.minBufferSize:(ID)I
invokevirtual com.carrotsearch.hppc.ShortHashSet.allocateBuffers:(I)V
3: aload 2
ifnull 5
aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.isEmpty:()Z
ifne 5
4: aload 0
aload 2
invokevirtual com.carrotsearch.hppc.ShortHashSet.rehash:([S)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 6 1 expectedElements I
2 5 2 prevKeys [S
MethodParameters:
Name Flags
expectedElements
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.assigned:I
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack: int
1: iconst_0
StackMap locals: com.carrotsearch.hppc.ShortHashSet
StackMap stack: int int
2: iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/carrotsearch/hppc/ShortHashSet;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 1
ldc -559038737
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 4: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 3
start local 3 5: goto 10
6: StackMap locals: int short[] int
StackMap stack:
aload 2
iload 3
saload
dup
istore 4
start local 4 7: ifeq 9
8: iload 1
iload 4
invokestatic com.carrotsearch.hppc.BitMixer.mix:(S)I
iadd
istore 1
end local 4 9: StackMap locals:
StackMap stack:
iinc 3 -1
StackMap locals:
StackMap stack:
10: iload 3
ifge 6
end local 3 11: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/carrotsearch/hppc/ShortHashSet;
3 12 1 h I
4 12 2 keys [S
5 11 3 slot I
7 9 4 existing S
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 4
1: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpne 4
2: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.carrotsearch.hppc.ShortSet
invokevirtual com.carrotsearch.hppc.ShortHashSet.sameKeys:(Lcom/carrotsearch/hppc/ShortSet;)Z
ifeq 4
3: iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 5 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
private boolean sameKeys(com.carrotsearch.hppc.ShortSet);
descriptor: (Lcom/carrotsearch/hppc/ShortSet;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface com.carrotsearch.hppc.ShortSet.size:()I
aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.size:()I
if_icmpeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface com.carrotsearch.hppc.ShortSet.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: com.carrotsearch.hppc.ShortHashSet com.carrotsearch.hppc.ShortSet top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.carrotsearch.hppc.cursors.ShortCursor
astore 2
start local 2 4: aload 0
aload 2
getfield com.carrotsearch.hppc.cursors.ShortCursor.value:S
invokevirtual com.carrotsearch.hppc.ShortHashSet.contains:(S)Z
ifne 6
5: iconst_0
ireturn
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 8 1 other Lcom/carrotsearch/hppc/ShortSet;
4 6 2 c Lcom/carrotsearch/hppc/cursors/ShortCursor;
MethodParameters:
Name Flags
other
public com.carrotsearch.hppc.ShortHashSet clone();
descriptor: ()Lcom/carrotsearch/hppc/ShortHashSet;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
checkcast com.carrotsearch.hppc.ShortHashSet
astore 1
start local 1 1: aload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
invokevirtual short[].clone:()Ljava/lang/Object;
checkcast short[]
putfield com.carrotsearch.hppc.ShortHashSet.keys:[S
2: aload 1
aload 1
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
putfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
3: aload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.orderMixer:Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
invokeinterface com.carrotsearch.hppc.HashOrderMixingStrategy.clone:()Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
putfield com.carrotsearch.hppc.ShortHashSet.orderMixer:Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
4: aload 1
5: areturn
end local 1 6: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
astore 1
start local 1 7: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/carrotsearch/hppc/ShortHashSet;
1 6 1 cloned Lcom/carrotsearch/hppc/ShortHashSet;
7 8 1 e Ljava/lang/CloneNotSupportedException;
Exception table:
from to target type
0 5 6 Class java.lang.CloneNotSupportedException
public java.util.Iterator<com.carrotsearch.hppc.cursors.ShortCursor> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.carrotsearch.hppc.ShortHashSet$EntryIterator
dup
aload 0
invokespecial com.carrotsearch.hppc.ShortHashSet$EntryIterator.<init>:(Lcom/carrotsearch/hppc/ShortHashSet;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/carrotsearch/hppc/ShortHashSet;
Signature: ()Ljava/util/Iterator<Lcom/carrotsearch/hppc/cursors/ShortCursor;>;
public <T extends com.carrotsearch.hppc.procedures.ShortProcedure> T forEach();
descriptor: (Lcom/carrotsearch/hppc/procedures/ShortProcedure;)Lcom/carrotsearch/hppc/procedures/ShortProcedure;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 2
1: aload 1
iconst_0
invokeinterface com.carrotsearch.hppc.procedures.ShortProcedure.apply:(S)V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 4
start local 4 5: goto 10
6: StackMap locals: short[] int int
StackMap stack:
aload 2
iload 3
saload
dup
istore 5
start local 5 7: ifeq 9
8: aload 1
iload 5
invokeinterface com.carrotsearch.hppc.procedures.ShortProcedure.apply:(S)V
end local 5 9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
iload 4
if_icmple 6
end local 4 end local 3 11: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 12 1 procedure TT;
3 12 2 keys [S
4 11 3 slot I
5 11 4 max I
7 9 5 existing S
Signature: <T::Lcom/carrotsearch/hppc/procedures/ShortProcedure;>(TT;)TT;
MethodParameters:
Name Flags
procedure
public <T extends com.carrotsearch.hppc.predicates.ShortPredicate> T forEach();
descriptor: (Lcom/carrotsearch/hppc/predicates/ShortPredicate;)Lcom/carrotsearch/hppc/predicates/ShortPredicate;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 3
1: aload 1
iconst_0
invokeinterface com.carrotsearch.hppc.predicates.ShortPredicate.apply:(S)Z
ifne 3
2: aload 1
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 4
start local 4 6: goto 12
7: StackMap locals: short[] int int
StackMap stack:
aload 2
iload 3
saload
dup
istore 5
start local 5 8: ifeq 11
9: aload 1
iload 5
invokeinterface com.carrotsearch.hppc.predicates.ShortPredicate.apply:(S)Z
ifne 11
10: goto 13
end local 5 11: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 4
if_icmple 7
end local 4 end local 3 13: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 14 1 predicate TT;
4 14 2 keys [S
5 13 3 slot I
6 13 4 max I
8 11 5 existing S
Signature: <T::Lcom/carrotsearch/hppc/predicates/ShortPredicate;>(TT;)TT;
MethodParameters:
Name Flags
predicate
public static com.carrotsearch.hppc.ShortHashSet from(short[]);
descriptor: ([S)Lcom/carrotsearch/hppc/ShortHashSet;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=1
start local 0 0: new com.carrotsearch.hppc.ShortHashSet
dup
aload 0
arraylength
invokespecial com.carrotsearch.hppc.ShortHashSet.<init>:(I)V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.addAll:([S)I
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 elements [S
1 3 1 set Lcom/carrotsearch/hppc/ShortHashSet;
MethodParameters:
Name Flags
elements
protected int hashKey(short);
descriptor: (S)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 1
iload 1
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keyMixer:I
invokestatic com.carrotsearch.hppc.BitMixer.mix:(SI)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 2 1 key S
MethodParameters:
Name Flags
key
public int indexOf(short);
descriptor: (S)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 2
start local 2 1: iload 1
ifne 5
2: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifeq 3
iload 2
iconst_1
iadd
goto 4
StackMap locals: int
StackMap stack:
3: iload 2
iconst_1
iadd
iconst_m1
ixor
StackMap locals:
StackMap stack: int
4: ireturn
5: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 3
start local 3 6: aload 0
iload 1
invokevirtual com.carrotsearch.hppc.ShortHashSet.hashKey:(S)I
iload 2
iand
istore 4
start local 4 7: goto 11
start local 5 8: StackMap locals: short[] int int
StackMap stack:
iload 5
iload 1
if_icmpne 10
9: iload 4
ireturn
10: StackMap locals:
StackMap stack:
iload 4
iconst_1
iadd
iload 2
iand
istore 4
end local 5 11: StackMap locals:
StackMap stack:
aload 3
iload 4
saload
dup
istore 5
start local 5 12: ifne 8
13: iload 4
iconst_m1
ixor
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 14 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 14 1 key S
1 14 2 mask I
6 14 3 keys [S
7 14 4 slot I
8 11 5 existing S
12 14 5 existing S
MethodParameters:
Name Flags
key
public boolean indexExists(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 4
iload 1
iflt 4
1: iload 1
iflt 2
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
if_icmple 4
2: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
iconst_1
iadd
if_icmpne 3
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifne 4
StackMap locals:
StackMap stack:
3: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
iload 1
iflt 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 6 1 index I
MethodParameters:
Name Flags
index
public short indexGet(int);
descriptor: (I)S
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 1
iload 1
ifge 1
new java.lang.AssertionError
dup
ldc "The index must point at an existing key."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 4
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
if_icmple 4
2: iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
iconst_1
iadd
if_icmpne 3
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifne 4
StackMap locals:
StackMap stack:
3: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
saload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 5 1 index I
MethodParameters:
Name Flags
index
public short indexReplace(int, short);
descriptor: (IS)S
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 1
iload 1
ifge 1
new java.lang.AssertionError
dup
ldc "The index must point at an existing key."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 4
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
if_icmple 4
2: iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
iconst_1
iadd
if_icmpne 3
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
ifne 4
StackMap locals:
StackMap stack:
3: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 5
iload 2
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
saload
if_icmpeq 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
saload
istore 3
start local 3 6: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
iload 2
sastore
7: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 8 1 index I
0 8 2 equivalentKey S
6 8 3 previousValue S
MethodParameters:
Name Flags
index
equivalentKey
public void indexInsert(int, short);
descriptor: (IS)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 1
iload 1
iflt 1
new java.lang.AssertionError
dup
ldc "The index must not point at an existing key."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
iload 1
iconst_m1
ixor
istore 1
2: iload 2
ifne 7
3: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 4
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
iconst_1
iadd
if_icmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 5
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
saload
ifeq 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.carrotsearch.hppc.ShortHashSet.hasEmptyKey:Z
6: goto 13
7: StackMap locals:
StackMap stack:
getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 8
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
saload
ifeq 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.assigned:I
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.resizeAt:I
if_icmpne 11
9: aload 0
iload 1
iload 2
invokevirtual com.carrotsearch.hppc.ShortHashSet.allocateThenInsertThenRehash:(IS)V
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
iload 2
sastore
12: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.carrotsearch.hppc.ShortHashSet.assigned:I
iconst_1
iadd
putfield com.carrotsearch.hppc.ShortHashSet.assigned:I
13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 14 1 index I
0 14 2 key S
MethodParameters:
Name Flags
index
key
public java.lang.String visualizeKeyDistribution(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
iload 1
invokestatic com.carrotsearch.hppc.ShortBufferVisualizer.visualizeKeyDistribution:([SII)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 1 1 characters I
MethodParameters:
Name Flags
characters
protected double verifyLoadFactor(double);
descriptor: (D)D
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: dload 1
ldc 0.009999999776482582
ldc 0.9900000095367432
invokestatic com.carrotsearch.hppc.HashContainers.checkLoadFactor:(DDD)V
1: dload 1
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 2 1 loadFactor D
MethodParameters:
Name Flags
loadFactor
protected void rehash(short[]);
descriptor: ([S)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 1
aload 1
arraylength
iconst_1
isub
invokestatic com.carrotsearch.hppc.HashContainers.checkPowerOfTwo:(I)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 2: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 3
start local 3 3: aload 1
arraylength
iconst_1
isub
istore 5
start local 5 4: goto 12
5: StackMap locals: com.carrotsearch.hppc.ShortHashSet short[] short[] int top int
StackMap stack:
aload 1
iload 5
saload
dup
istore 4
start local 4 6: ifeq 12
7: aload 0
iload 4
invokevirtual com.carrotsearch.hppc.ShortHashSet.hashKey:(S)I
iload 3
iand
istore 6
start local 6 8: goto 10
9: StackMap locals: com.carrotsearch.hppc.ShortHashSet short[] short[] int int int int
StackMap stack:
iload 6
iconst_1
iadd
iload 3
iand
istore 6
10: StackMap locals:
StackMap stack:
aload 2
iload 6
saload
ifne 9
11: aload 2
iload 6
iload 4
sastore
end local 6 end local 4 12: StackMap locals: com.carrotsearch.hppc.ShortHashSet short[] short[] int top int
StackMap stack:
iinc 5 -1
iload 5
ifge 5
end local 5 13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 14 1 fromKeys [S
2 14 2 keys [S
3 14 3 mask I
6 12 4 existing S
4 13 5 i I
8 12 6 slot I
MethodParameters:
Name Flags
fromKeys
protected void allocateBuffers(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 1
iload 1
invokestatic java.lang.Integer.bitCount:(I)I
iconst_1
if_icmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.orderMixer:Lcom/carrotsearch/hppc/HashOrderMixingStrategy;
iload 1
invokeinterface com.carrotsearch.hppc.HashOrderMixingStrategy.newKeyMixer:(I)I
istore 2
start local 2 2: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 3
start local 3 3: iconst_1
istore 4
start local 4 4: aload 0
iload 1
iload 4
iadd
newarray 9
putfield com.carrotsearch.hppc.ShortHashSet.keys:[S
end local 4 5: goto 16
StackMap locals: com.carrotsearch.hppc.ShortHashSet int int short[]
StackMap stack: java.lang.OutOfMemoryError
6: astore 4
start local 4 7: aload 0
aload 3
putfield com.carrotsearch.hppc.ShortHashSet.keys:[S
8: new com.carrotsearch.hppc.BufferAllocationException
dup
9: ldc "Not enough memory to allocate buffers for rehashing: %,d -> %,d"
10: aload 4
iconst_2
anewarray java.lang.Object
dup
iconst_0
11: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
ifnonnull 12
iconst_0
goto 13
StackMap locals: com.carrotsearch.hppc.ShortHashSet int int short[] java.lang.OutOfMemoryError
StackMap stack: new 8 new 8 java.lang.String java.lang.OutOfMemoryError java.lang.Object[] java.lang.Object[] int
12: aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.size:()I
StackMap locals: com.carrotsearch.hppc.ShortHashSet int int short[] java.lang.OutOfMemoryError
StackMap stack: new 8 new 8 java.lang.String java.lang.OutOfMemoryError java.lang.Object[] java.lang.Object[] int int
13: invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
14: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
15: aastore
invokespecial com.carrotsearch.hppc.BufferAllocationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
athrow
end local 4 16: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.loadFactor:D
invokestatic com.carrotsearch.hppc.HashContainers.expandAtCount:(ID)I
putfield com.carrotsearch.hppc.ShortHashSet.resizeAt:I
17: aload 0
iload 2
putfield com.carrotsearch.hppc.ShortHashSet.keyMixer:I
18: aload 0
iload 1
iconst_1
isub
putfield com.carrotsearch.hppc.ShortHashSet.mask:I
19: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 20 1 arraySize I
2 20 2 newKeyMixer I
3 20 3 prevKeys [S
4 5 4 emptyElementSlot I
7 16 4 e Ljava/lang/OutOfMemoryError;
Exception table:
from to target type
3 5 6 Class java.lang.OutOfMemoryError
MethodParameters:
Name Flags
arraySize
protected void allocateThenInsertThenRehash(int, short);
descriptor: (IS)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 4
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.assigned:I
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.resizeAt:I
if_icmpne 3
1: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
iload 1
saload
ifne 3
2: iload 2
ifne 4
StackMap locals:
StackMap stack:
3: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 3
start local 3 5: aload 0
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
iconst_1
iadd
aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.size:()I
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.loadFactor:D
invokestatic com.carrotsearch.hppc.HashContainers.nextBufferSize:(IID)I
invokevirtual com.carrotsearch.hppc.ShortHashSet.allocateBuffers:(I)V
6: getstatic com.carrotsearch.hppc.ShortHashSet.$assertionsDisabled:Z
ifne 7
aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
arraylength
aload 3
arraylength
if_icmpgt 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: short[]
StackMap stack:
aload 3
iload 1
iload 2
sastore
8: aload 0
aload 3
invokevirtual com.carrotsearch.hppc.ShortHashSet.rehash:([S)V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 10 1 slot I
0 10 2 pendingKey S
5 10 3 prevKeys [S
MethodParameters:
Name Flags
slot
pendingKey
protected void shiftConflictingKeys(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.keys:[S
astore 2
start local 2 1: aload 0
getfield com.carrotsearch.hppc.ShortHashSet.mask:I
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: StackMap locals: short[] int int
StackMap stack:
iload 1
iinc 4 1
iload 4
iadd
iload 3
iand
istore 5
start local 5 4: aload 2
iload 5
saload
istore 6
start local 6 5: iload 6
ifne 7
6: goto 14
7: StackMap locals: int int
StackMap stack:
aload 0
iload 6
invokevirtual com.carrotsearch.hppc.ShortHashSet.hashKey:(S)I
istore 7
start local 7 8: iload 5
iload 7
isub
iload 3
iand
istore 8
start local 8 9: iload 8
iload 4
if_icmplt 3
10: aload 2
iload 1
iload 6
sastore
11: iload 5
istore 1
12: iconst_0
istore 4
end local 8 end local 7 end local 6 end local 5 13: goto 3
14: StackMap locals:
StackMap stack:
aload 2
iload 1
iconst_0
sastore
15: aload 0
dup
getfield com.carrotsearch.hppc.ShortHashSet.assigned:I
iconst_1
isub
putfield com.carrotsearch.hppc.ShortHashSet.assigned:I
16: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/carrotsearch/hppc/ShortHashSet;
0 17 1 gapSlot I
1 17 2 keys [S
2 17 3 mask I
3 17 4 distance I
4 13 5 slot I
5 13 6 existing S
8 13 7 idealSlot I
9 13 8 shift I
MethodParameters:
Name Flags
gapSlot
public int retainAll(com.carrotsearch.hppc.predicates.ShortPredicate);
descriptor: (Lcom/carrotsearch/hppc/predicates/ShortPredicate;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial com.carrotsearch.hppc.AbstractShortCollection.retainAll:(Lcom/carrotsearch/hppc/predicates/ShortPredicate;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public int retainAll(com.carrotsearch.hppc.ShortLookupContainer);
descriptor: (Lcom/carrotsearch/hppc/ShortLookupContainer;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial com.carrotsearch.hppc.AbstractShortCollection.retainAll:(Lcom/carrotsearch/hppc/ShortLookupContainer;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial com.carrotsearch.hppc.AbstractShortCollection.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public int removeAll(com.carrotsearch.hppc.ShortLookupContainer);
descriptor: (Lcom/carrotsearch/hppc/ShortLookupContainer;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial com.carrotsearch.hppc.AbstractShortCollection.removeAll:(Lcom/carrotsearch/hppc/ShortLookupContainer;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.carrotsearch.hppc.ShortHashSet.clone:()Lcom/carrotsearch/hppc/ShortHashSet;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.CloneNotSupportedException
}
SourceFile: "ShortHashSet.java"
NestMembers:
com.carrotsearch.hppc.ShortHashSet$EntryIterator
InnerClasses:
protected final EntryIterator = com.carrotsearch.hppc.ShortHashSet$EntryIterator of com.carrotsearch.hppc.ShortHashSet