|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.suggestion.util.UnsignedLong
public class UnsignedLong
This class doesn't really implement a complete Unsigned Long because it uses a long 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 UnsignedLong value.
Field Summary | |
---|---|
protected long |
longValue
|
static long |
NONE
|
static java.lang.String |
NONE_STRING
|
Constructor Summary | |
---|---|
UnsignedLong()
Constructor. |
|
UnsignedLong(long aLongValue)
Constructor. |
|
UnsignedLong(java.lang.String aLongAsString)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
long |
get()
Get the unsigned long value. |
UnsignedLong |
getRandom()
Randomly generate an unsigned long value. |
boolean |
isSet()
Is the value set. |
void |
set(long aLongValue)
Set the unsigned long value. |
void |
set(java.lang.String aLongAsString)
Set the unsigned long 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 long NONE
public static java.lang.String NONE_STRING
protected long longValue
Constructor Detail |
---|
public UnsignedLong()
public UnsignedLong(long aLongValue) throws InvalidValueException
aLongValue
- a unsigned long value
InvalidValueException
public UnsignedLong(java.lang.String aLongAsString) throws InvalidValueException
aLongAsString
- an unsigned long as string
InvalidValueException
Method Detail |
---|
public long get()
public boolean isSet()
public void set(long aLongValue) throws InvalidValueException
aLongValue
- an unsigned long value
InvalidValueException
public void set(java.lang.String aLongAsString) throws InvalidValueException
aLongAsString
- an unsigned long value as string
InvalidValueException
public void unset()
public UnsignedLong getRandom()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |