|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.xbig.base.EnumPointer<T>
public class EnumPointer<T extends INativeEnum<T>>
This class maintains the adress of a single integer. It makes sure that only allowed enumeration values of it's type parameter are used.
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
EnumPointer(InstancePointer p,
T val)
Allows native methods to return EnumPointers. |
|
EnumPointer(T val)
Constructor to create an integer variable on the heap and initialise it with an allowed value. |
|
| Method Summary | |
|---|---|
void |
delete()
Frees the memory used by the integer value. |
void |
finalize()
If a client programmer forgets to free memory there is a chance that the GC does it. |
T |
get()
Returns the enumeration value. |
void |
set(T val)
Sets the integer value. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnumPointer(InstancePointer p,
T val)
public EnumPointer(T val)
| Method Detail |
|---|
public void delete()
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void set(T val)
public T get()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||