|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.suggestion.util.UnsignedShort
public class UnsignedShort
This class doesn't really implement a complete Unsigned Short because it uses a short primitive. The primitive is simply prohibited from being negative, so the maximum value of this class is half of the maximum value of a true UnsignedShort value.
| Field Summary | |
|---|---|
static short |
NONE
|
static java.lang.String |
NONE_STRING
|
protected short |
shortValue
|
| Constructor Summary | |
|---|---|
UnsignedShort()
Constructor. |
|
UnsignedShort(short aShortValue)
Constructor. |
|
UnsignedShort(java.lang.String aShortValueAsString)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
short |
get()
Get the unsigned short value. |
UnsignedShort |
getRandom()
Get a random unsigned short value. |
boolean |
isSet()
Is the value set. |
void |
set(short aShortValue)
Set an unsigned short value. |
void |
set(java.lang.String aShortValueAsString)
Set an unsigned short value as string. |
java.lang.String |
toString()
|
void |
unset()
Unset the value. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static short NONE
public static java.lang.String NONE_STRING
protected short shortValue
| Constructor Detail |
|---|
public UnsignedShort()
public UnsignedShort(short aShortValue)
throws InvalidValueException
aShortValue - an unsigned short value
InvalidValueException
public UnsignedShort(java.lang.String aShortValueAsString)
throws InvalidValueException
aShortValueAsString - an unsigned short value as string
InvalidValueException| Method Detail |
|---|
public short get()
public boolean isSet()
public void set(short aShortValue)
throws InvalidValueException
aShortValue - an unsigned short value
InvalidValueException
public void set(java.lang.String aShortValueAsString)
throws InvalidValueException
aShortValueAsString - an unsigned short value as string
InvalidValueExceptionpublic void unset()
public UnsignedShort getRandom()
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||