|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object au.com.swz.swttocom.swt.types.pointer.LongPointer
public class LongPointer
A pointer for use with the long Java type.
Constructor Summary | |
---|---|
LongPointer()
Constructs a new pointer for which no memotry is allocated. |
|
LongPointer(int address)
Constructs a new pointer that will use the specified memory address to store data. |
Method Summary | |
---|---|
void |
dispose()
Releases the memory (if any) allocated by this pointer. |
protected void |
finalize()
|
int |
getAddress()
Returns the memory address for this pointer. |
long |
getValue()
Returns the value of this pointer. |
void |
setAddress(int address)
Sets the memory address for this pointer. |
void |
setValue(long longData)
Sets the value of this pointer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongPointer()
public LongPointer(int address)
address
- the memory address to use for storing data.Method Detail |
---|
public long getValue()
public void setValue(long longData)
longData
- the new value for this pointer.public int getAddress()
getAddress
in interface IPointer
public void setAddress(int address)
setAddress
in interface IPointer
address
- the new memory address for this pointer or 0 to clear
the memory address of this pointer.public void dispose()
dispose
in interface IDisposeableResource
dispose
in interface IPointer
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |