public class Pointer
extends java.lang.Object
Constructor and Description |
---|
Pointer(long value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
get()
Returns this pointer's current value.
|
long |
getAndIncrement(int increment)
Returns this pointer's current value and increments it by a given step.
|
void |
set(long value)
Sets this pointer's current value.
|
public Pointer(long value)
value
- initial valuepublic long get()
public long getAndIncrement(int increment)
increment
- amount to increase value bypublic void set(long value)
value
- new value