|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
com.kenai.jaffl.struct.Struct.NumberField
com.kenai.jaffl.struct.Struct.Signed16
public class Struct.Signed16
A 16 bit signed integer field.
Constructor Summary | |
---|---|
Struct.Signed16()
Creates a new 16 bit integer field. |
|
Struct.Signed16(Struct.Offset offset)
Creates a new 16 bit signed integer field at a specific offset |
Method Summary | |
---|---|
short |
get()
Gets the value for this field. |
int |
intValue()
Returns a java int representation of this field. |
void |
set(java.lang.Number value)
Sets the field to a new value. |
void |
set(short value)
Sets the value for this field. |
short |
shortValue()
Returns a java short representation of this field. |
Methods inherited from class com.kenai.jaffl.struct.Struct.NumberField |
---|
doubleValue, floatValue, getMemoryIO, longValue, offset, struct, toString |
Methods inherited from class java.lang.Number |
---|
byteValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Struct.Signed16()
public Struct.Signed16(Struct.Offset offset)
offset
- The offset within the memory area for this field.Method Detail |
---|
public final short get()
public final void set(short value)
value
- the 16 bit value to set.public void set(java.lang.Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public final short shortValue()
shortValue
in class java.lang.Number
public final int intValue()
intValue
in class java.lang.Number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |