org.apache.qpid.proton.amqp
Class UnsignedShort

java.lang.Object
  extended by java.lang.Number
      extended by org.apache.qpid.proton.amqp.UnsignedShort
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UnsignedShort>

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

See Also:
Serialized Form

Field Summary
static UnsignedShort MAX_VALUE
           
 
Constructor Summary
UnsignedShort(short underlying)
           
 
Method Summary
 int compareTo(UnsignedShort o)
           
 double doubleValue()
           
 boolean equals(java.lang.Object o)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
 short shortValue()
           
 java.lang.String toString()
           
static UnsignedShort valueOf(short underlying)
           
static UnsignedShort valueOf(java.lang.String value)
           
 
Methods inherited from class java.lang.Number
byteValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final UnsignedShort MAX_VALUE
Constructor Detail

UnsignedShort

public UnsignedShort(short underlying)
Method Detail

shortValue

public short shortValue()
Overrides:
shortValue in class java.lang.Number

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 o)
Overrides:
equals in class java.lang.Object

compareTo

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

hashCode

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

toString

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

valueOf

public static UnsignedShort valueOf(short underlying)

valueOf

public static UnsignedShort valueOf(java.lang.String value)