org.simantics.databoard.primitives
Class UnsignedShort

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

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

Unsigned 16-bit integer value. The value is between 0 and 65535.

Author:
Toni Kalajainen
See Also:
Serialized Form

Nested Class Summary
static class UnsignedShort.Immutable
           
static class UnsignedShort.Mutable
           
 
Field Summary
static long L_MAX_VALUE
           
static long L_MIN_VALUE
           
static UnsignedShort MAX_VALUE
           
static UnsignedShort MIN_VALUE
           
static UnsignedShort ZERO
           
 
Constructor Summary
UnsignedShort()
           
 
Method Summary
 int compareTo(java.lang.Number obj)
           
 double doubleValue()
           
 boolean equals(java.lang.Object obj)
           
 float floatValue()
           
static UnsignedShort fromBits(int intBits)
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
 int toBits()
           
 java.lang.String toString()
           
static UnsignedShort 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 UnsignedShort MIN_VALUE

MAX_VALUE

public static final UnsignedShort MAX_VALUE

ZERO

public static final UnsignedShort 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

UnsignedShort

public UnsignedShort()
Method Detail

valueOf

public static UnsignedShort valueOf(long value)

fromBits

public static UnsignedShort 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