|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectggencoder.datastructures.AbstractRawCode
ggencoder.datastructures.BasicGBGGRawCode
An implementation of the GBGGRawCode interface.
| Constructor Summary | |
BasicGBGGRawCode(int address,
int value)
Creates a new BasicGBGGRawCode object without a compare or shadow value. |
|
BasicGBGGRawCode(int address,
int value,
int compare)
Creates a new BasicGBGGRawCode object with a compare value. |
|
| Method Summary | |
int |
getCompareValue()
Gets this code's compare value. |
boolean |
hasCompareValue()
Queries if this code uses a compare value. |
void |
setAddress(int address)
Sets the address of this code. |
void |
setCompareValue(int compare)
Sets this code's compare value. |
void |
setValue(int value)
Sets the value of this code. |
java.lang.String |
toString()
Returns a String representation of this code. |
| Methods inherited from class ggencoder.datastructures.AbstractRawCode |
getAddress, getValue, toHexString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ggencoder.datastructures.RawCode |
getAddress, getValue |
| Constructor Detail |
public BasicGBGGRawCode(int address,
int value)
address - This code's address.value - This code's value.
public BasicGBGGRawCode(int address,
int value,
int compare)
address - This code's address.value - This code's value.compare - This code's compare value.| Method Detail |
public boolean hasCompareValue()
hasCompareValue in interface GBGGRawCode
public int getCompareValue()
throws NoCompareValueException
getCompareValue in interface GBGGRawCodeNoCompareValueException - if no compare value is used by this
code.
public void setCompareValue(int compare)
throws NoCompareValueException
setCompareValue in interface GBGGRawCodecompare - The new compare value.
NoCompareValueException - f no compare value is used by this
code.public void setAddress(int address)
setAddress in interface RawCodesetAddress in class AbstractRawCodeaddress - The code's address.public void setValue(int value)
setValue in interface RawCodesetValue in class AbstractRawCodevalue - The code's value.public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||