IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.value
Class UByte

java.lang.Object   extended by java.lang.Number       extended by com.rational.test.value.UByte
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class UByte
extends java.lang.Number
implements java.lang.Comparable

Value class that provides an implementation of an unsigned 8 bit integer. Unsigned 8 bit integers do not exist in Java but do exist on other platforms (for example, .NET). This class allows a Java client to interact with a platform that uses unsigned 8 bit integers.

Since:
RFT1.1
See Also:
Serialized Form

Field Summary
protected  short value
           
 
Constructor Summary
UByte(byte value)
          Constructs from a signed 8 bit value, the bits of the value are assumed to actually represent an unsigned number.
UByte(short value)
          Constructs from a signed 16 bit value, only 8 bits of the value is used.
UByte(java.lang.String s)
          Constructs from a string.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 int compareTo(UByte anotherUByte)
           
 double doubleValue()
           
 boolean equals(java.lang.Object o)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
 java.lang.String toHexString()
           
 java.lang.String toString()
           
static UByte valueOf(java.lang.String s)
           
static UByte valueOf(java.lang.String s, int radix)
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected short value
Constructor Detail

UByte

public UByte(short value)
Constructs from a signed 16 bit value, only 8 bits of the value is used.


UByte

public UByte(java.lang.String s)
Constructs from a string.


UByte

public UByte(byte value)
Constructs from a signed 8 bit value, the bits of the value are assumed to actually represent an unsigned number. If the value is less than 0, the bits are re-interpreted as an unsigned value using all 8 bits.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Since:
RFT1.1

toHexString

public java.lang.String toHexString()
Since:
RFT1.1

valueOf

public static UByte valueOf(java.lang.String s)
Since:
RFT1.1

valueOf

public static UByte valueOf(java.lang.String s,                             int radix)
Since:
RFT1.1

compareTo

public int compareTo(UByte anotherUByte)
Since:
RFT1.1

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
Since:
RFT1.1

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Since:
RFT1.1

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Since:
RFT1.1

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number
Since:
RFT1.1

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number
Since:
RFT1.1

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number
Since:
RFT1.1

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number
Since:
RFT1.1