public class SimpleRegister extends SynchronizedAbstractRegister implements Register
The setValue() method is synchronized, which ensures atomic access, * but no specific access order.
| Constructor and Description |
|---|
SimpleRegister()
Constructs a new SimpleRegister instance.
|
SimpleRegister(byte b1,
byte b2)
Constructs a new SimpleRegister instance.
|
SimpleRegister(int value)
Constructs a new SimpleRegister instance with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
getValue, setValue, setValue, setValue, toBytes, toShort, toUnsignedShortequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetValue, setValue, setValuegetValue, toBytes, toShort, toUnsignedShortpublic SimpleRegister(byte b1,
byte b2)
b1 - the first (hi) byte of the word.b2 - the second (low) byte of the word.public SimpleRegister(int value)
value - the value of this SimpleRegister as int.public SimpleRegister()
Copyright © 2025. All Rights Reserved.