|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
org.opcfoundation.ua.builtintypes.UnsignedByte
public final class UnsignedByte
UnsignedByte class.
| Field Summary | |
|---|---|
static NodeId |
ID
Constant ID |
static long |
L_MAX_VALUE
Constant L_MAX_VALUE=0xFFL |
static long |
L_MIN_VALUE
Constant L_MIN_VALUE=0L |
static UnsignedByte |
MAX_VALUE
Constant MAX_VALUE |
static UnsignedByte |
MIN_VALUE
Constant MIN_VALUE |
static UnsignedByte |
ONE
Constant ONE |
static UnsignedByte |
ZERO
Constant ZERO |
| Constructor Summary | |
|---|---|
UnsignedByte()
Constructor for UnsignedByte. |
|
UnsignedByte(byte value)
Constructor for UnsignedByte. |
|
UnsignedByte(int value)
Constructor for UnsignedByte. |
|
UnsignedByte(long value)
Constructor for UnsignedByte. |
|
UnsignedByte(String valueString)
Constructor for UnsignedByte. |
|
| Method Summary | |
|---|---|
UnsignedByte |
add(int increment)
Add a value. |
UnsignedByte |
add(UnsignedByte increment)
Add a value. |
static void |
assertValueInRange(int value)
assertValueInRange. |
static void |
assertValueInRange(long value)
assertValueInRange. |
byte |
byteValue()
|
int |
compareTo(UnsignedByte o)
compareTo. |
UnsignedByte |
dec()
Decrease the value by one. |
double |
doubleValue()
|
boolean |
equals(Object obj)
|
float |
floatValue()
|
static UnsignedByte |
getFromBits(byte value)
getFromBits. |
int |
getValue()
Getter for the field value. |
int |
hashCode()
|
UnsignedByte |
inc()
Increase the value by one. |
int |
intValue()
|
long |
longValue()
|
static UnsignedByte |
max(UnsignedByte v0,
UnsignedByte v1)
max. |
static UnsignedByte |
min(UnsignedByte v0,
UnsignedByte v1)
min. |
static UnsignedByte |
parseUnsignedByte(String s)
Parse an UnsignedByte value from a string |
static UnsignedByte |
parseUnsignedByte(String s,
int radix)
Parses the string argument as an unsigned byte similar to Integer.parseInt(String, int) |
UnsignedByte |
subtract(int decrement)
Subtract a value from this value. |
UnsignedByte |
subtract(UnsignedByte decrement)
Subtract a value from this value. |
byte |
toByteBits()
toByteBits. |
String |
toString()
|
static UnsignedByte |
valueOf(int value)
valueOf. |
| Methods inherited from class java.lang.Number |
|---|
shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NodeId ID
ID
public static final long L_MAX_VALUE
L_MAX_VALUE=0xFFL
public static final long L_MIN_VALUE
L_MIN_VALUE=0L
public static final UnsignedByte MAX_VALUE
MAX_VALUE
public static final UnsignedByte MIN_VALUE
MIN_VALUE
public static final UnsignedByte ZERO
ZERO
public static final UnsignedByte ONE
ONE
| Constructor Detail |
|---|
public UnsignedByte()
Constructor for UnsignedByte.
public UnsignedByte(int value)
throws IllegalArgumentException
Constructor for UnsignedByte.
value - a int.
IllegalArgumentException - if any.
public UnsignedByte(long value)
throws IllegalArgumentException
Constructor for UnsignedByte.
value - a long.
IllegalArgumentException - if any.
public UnsignedByte(byte value)
throws IllegalArgumentException
Constructor for UnsignedByte.
value - a byte.
IllegalArgumentException - if any.
public UnsignedByte(String valueString)
throws IllegalArgumentException
Constructor for UnsignedByte.
valueString - a String object.
IllegalArgumentException - if any.| Method Detail |
|---|
public static UnsignedByte max(UnsignedByte v0,
UnsignedByte v1)
max.
v0 - a UnsignedByte object.v1 - a UnsignedByte object.
UnsignedByte object.
public static UnsignedByte min(UnsignedByte v0,
UnsignedByte v1)
min.
v0 - a UnsignedByte object.v1 - a UnsignedByte object.
UnsignedByte object.public static UnsignedByte valueOf(int value)
valueOf.
value - a int.
UnsignedByte object.public static UnsignedByte getFromBits(byte value)
getFromBits.
value - a byte.
UnsignedByte object.public static void assertValueInRange(int value)
assertValueInRange.
value - a int.public static void assertValueInRange(long value)
assertValueInRange.
value - a long.public int getValue()
Getter for the field value.
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic byte byteValue()
byteValue in class Numberpublic byte toByteBits()
toByteBits.
public int compareTo(UnsignedByte o)
compareTo.
compareTo in interface Comparable<UnsignedByte>o - a UnsignedByte object.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic static UnsignedByte parseUnsignedByte(String s)
s - the string to parse, assumed to contain a positive Integer value
public static UnsignedByte parseUnsignedByte(String s,
int radix)
Integer.parseInt(String, int)
s - the string to parse, assumed to contain a positive Integer valueradix - the radix to be used while parsing s.
public UnsignedByte inc()
public UnsignedByte dec()
IllegalArgumentException - if the value was 0 before the callpublic UnsignedByte add(int increment)
increment - the value to add to the current value
public UnsignedByte add(UnsignedByte increment)
increment - the value to add to the current value
public UnsignedByte subtract(int decrement)
decrement - the value to subtract from the current value
IllegalArgumentException - if the decrement is bigger than the current valuepublic UnsignedByte subtract(UnsignedByte decrement)
decrement - the value to subtract from the current value
IllegalArgumentException - if the decrement is bigger than the current value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||