AtomicBiInteger

An AtomicLong with additional methods to treat it as two hi/lo integers.

Members

Static functions

encode
long encode(long encoded, int deltaHi, int deltaLo)

Atomically adds the given deltas to the current hi and lo values.

encode
long encode(int hi, int lo)

Encodes hi and lo values into a long.

encodeHi
long encodeHi(long encoded, int hi)

Sets the hi value into the given encoded value.

encodeLo
long encodeLo(long encoded, int lo)

Sets the lo value into the given encoded value.

getHi
int getHi(long encoded)

Gets a hi value from the given encoded value.

getLo
int getLo(long encoded)

Gets a lo value from the given encoded value.

Meta