APIdia Launch Partner
Top Fields Constructors Methods
jdk.jfr.internal

public final Class LongMap<T>

extends Object
Class Inheritance
Annotations
@SuppressWarnings:unchecked
Imports
java.util.ArrayList, .BitSet, .List, java.util.function.Consumer, .LongConsumer

Field Summary

Modifier and TypeField and Description
private final int
private BitSet
private int
private static final int
private static final long[]
private static final Object[]
private long[]
private static final int
private static final Object
private T[]
private int

Constructor Summary

AccessConstructor and Description
public
public
LongMap(int markBits)

Method Summary

Modifier and TypeMethod and Description
private int
bitSetIndex(int tableIndex, int bitIndex)

public void
public void
clearId(long id, int bitIndex)

public void
clearId(long id)

public void
expand(int size)

public void
forEach(Consumer<T> consumer)

public void
forEachKey(LongConsumer keyTraverser)

public T
get(long id)

public T
getAt(int tableIndex)

public boolean
hasKey(long id)

private int
index(long id)

private void
initialize(int capacity)

public boolean
isSetId(long id, int bitIndex)

public void
put(long id, T object)

public void
setId(long id, int bitIndex)

public int
size()

private int
tableIndexOf(long id)

private static final int
tableSizeFor(int cap)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public List<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

bitCountback to summary
private final int bitCount
bitSetback to summary
private BitSet bitSet
countback to summary
private int count
DEFAULT_SIZEback to summary
private static final int DEFAULT_SIZE
EMPTY_KEYSback to summary
private static final long[] EMPTY_KEYS
EMPTY_OBJECTSback to summary
private static final Object[] EMPTY_OBJECTS
keysback to summary
private long[] keys
MAXIMUM_CAPACITYback to summary
private static final int MAXIMUM_CAPACITY
NULL_OBJECTback to summary
private static final Object NULL_OBJECT
objectsback to summary
private T[] objects
shiftback to summary
private int shift

Constructor Detail

LongMapback to summary
public LongMap()
LongMapback to summary
public LongMap(int markBits)

Method Detail

bitSetIndexback to summary
private int bitSetIndex(int tableIndex, int bitIndex)
claimBitsback to summary
public void claimBits()
clearIdback to summary
public void clearId(long id, int bitIndex)
clearIdback to summary
public void clearId(long id)
expandback to summary
public void expand(int size)
forEachback to summary
public void forEach(Consumer<T> consumer)
forEachKeyback to summary
public void forEachKey(LongConsumer keyTraverser)
getback to summary
public T get(long id)
getAtback to summary
public T getAt(int tableIndex)
hasKeyback to summary
public boolean hasKey(long id)
indexback to summary
private int index(long id)
initializeback to summary
private void initialize(int capacity)
isSetIdback to summary
public boolean isSetId(long id, int bitIndex)
putback to summary
public void put(long id, T object)
setIdback to summary
public void setId(long id, int bitIndex)
sizeback to summary
public int size()
tableIndexOfback to summary
private int tableIndexOf(long id)
tableSizeForback to summary
private static final int tableSizeFor(int cap)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
valuesback to summary
public List<T> values()