org.simantics.databoard.primitives
Class UnsignedByte

java.lang.Object
  extended by java.lang.Number
      extended by org.simantics.databoard.primitives.UnsignedByte
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.lang.Number>
Direct Known Subclasses:
UnsignedByte.Immutable, UnsignedByte.Mutable

public abstract class UnsignedByte
extends java.lang.Number
implements java.lang.Comparable<java.lang.Number>

Unsigned 8-bit integer value. The value is between 0 and 255.

Author:
Toni Kalajainen
See Also:
Serialized Form

Nested Class Summary
static class UnsignedByte.Immutable
           
static class UnsignedByte.Mutable
           
 
Field Summary
static long L_MAX_VALUE
           
static long L_MIN_VALUE
           
static UnsignedByte MAX_VALUE
           
static UnsignedByte MIN_VALUE
           
static UnsignedByte ZERO
           
 
Constructor Summary
UnsignedByte()
           
 
Method Summary
 int compareTo(java.lang.Number obj)
           
 double doubleValue()
           
 boolean equals(java.lang.Object obj)
           
 float floatValue()
           
static UnsignedByte fromBits(int intBits)
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
 int toBits()
           
 java.lang.String toString()
           
static UnsignedByte valueOf(long value)
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_VALUE

public static final UnsignedByte MIN_VALUE

MAX_VALUE

public static final UnsignedByte MAX_VALUE

ZERO

public static final UnsignedByte ZERO

L_MAX_VALUE

public static final long L_MAX_VALUE
See Also:
Constant Field Values

L_MIN_VALUE

public static final long L_MIN_VALUE
See Also:
Constant Field Values
Constructor Detail

UnsignedByte

public UnsignedByte()
Method Detail

valueOf

public static UnsignedByte valueOf(long value)

fromBits

public static UnsignedByte fromBits(int intBits)

toBits

public int toBits()

intValue

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

longValue

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

floatValue

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

doubleValue

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

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

compareTo

public int compareTo(java.lang.Number obj)
Specified by:
compareTo in interface java.lang.Comparable<java.lang.Number>

hashCode

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