public class LongHashSet extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity |
static long |
EMPTY |
protected long |
keys |
protected int |
maxSteps |
static long |
REMOVED |
protected int |
size |
protected static long |
sizeOffset |
protected static sun.misc.Unsafe |
unsafe |
| Constructor and Description |
|---|
LongHashSet(int capacity) |
LongHashSet(int capacity,
long keys) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
void |
clear() |
protected void |
decrementSize() |
int |
getKey(long key) |
protected static int |
hash(long key) |
protected void |
incrementSize() |
long |
keyAt(int index) |
int |
putKey(long key) |
int |
removeKey(long key) |
void |
setKeyAt(int index,
long value) |
int |
size() |
static long |
sizeInBytes(int capacity) |
protected static final sun.misc.Unsafe unsafe
protected static final long sizeOffset
public static final long EMPTY
public static final long REMOVED
protected volatile int size
protected int capacity
protected int maxSteps
protected long keys
public LongHashSet(int capacity)
public LongHashSet(int capacity,
long keys)
public final int size()
public final int capacity()
public final int getKey(long key)
public final int putKey(long key)
public final int removeKey(long key)
public final long keyAt(int index)
public final void setKeyAt(int index,
long value)
public void clear()
protected void incrementSize()
protected void decrementSize()
protected static int hash(long key)
public static long sizeInBytes(int capacity)
Copyright © 2019. All rights reserved.