uk.ac.rdg.resc.jstyx.types
Class ULong
java.lang.Object
uk.ac.rdg.resc.jstyx.types.ULong
public class ULong
- extends java.lang.Object
Unsigned long integer
- Author:
- Jon Blower
$Revision: 311 $
$Date: 2005-07-08 13:18:50 +0100 (Fri, 08 Jul 2005) $
$Log$
Revision 1.2 2005/07/08 12:18:50 jonblower
Implemented equals() methods
Revision 1.1.1.1 2005/02/16 18:58:35 jonblower
Initial import
|
Constructor Summary |
ULong(byte[] b)
Constructs a ULong from an array of 8 bytes in little-endian order |
ULong(long l)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ZERO
public static final ULong ZERO
ULong
public ULong(byte[] b)
- Constructs a ULong from an array of 8 bytes in little-endian order
- Throws:
java.lang.IllegalArgumentException - if the array is not 8 bytes long or if
it is null
ULong
public ULong(long l)
asBigInteger
public java.math.BigInteger asBigInteger()
asLong
public long asLong()
getBytes
public byte[] getBytes()
setValue
public void setValue(long l)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object otherULong)
- Overrides:
equals in class java.lang.Object
Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.