public class Address extends java.lang.Number implements java.lang.Comparable<Address>
| Modifier and Type | Field and Description |
|---|---|
protected long |
address |
static long |
MASK |
static int |
SHIFT |
static int |
SIZE |
| Constructor and Description |
|---|
Address(Address address)
Creates a new address representation.
|
Address(long address)
Creates a new address representation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Address other)
Compares two
Address instances numerically. |
double |
doubleValue()
Returns an
double representation of this address. |
boolean |
equals(java.lang.Object obj)
Compares this address to another address.
|
float |
floatValue()
Returns an
float representation of this address. |
int |
hashCode()
Gets a hash code for this
Address. |
int |
intValue()
Returns an integer representation of this address.
|
boolean |
isNull()
Tests if this Address is equivalent to C NULL
|
long |
longValue()
Returns an
long representation of this address. |
long |
nativeAddress()
Returns the native value of this address.
|
java.lang.String |
toString()
Returns a string representation of this
Address. |
static Address |
valueOf(long address) |
public static final int SIZE
public static final int SHIFT
public static final long MASK
protected final long address
public Address(long address)
address - the native address.public Address(Address address)
address - the native address.public static final Address valueOf(long address)
public final int intValue()
intValue in class java.lang.Numberpublic final long longValue()
long representation of this address.longValue in class java.lang.Numberlong value for this address.public final float floatValue()
float representation of this address.floatValue in class java.lang.Numberfloat value for this address.public final double doubleValue()
double representation of this address.doubleValue in class java.lang.Numberdouble value for this address.public final long nativeAddress()
long value representing the native value of this address.public final int hashCode()
Address.hashCode in class java.lang.ObjectAddress.public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other address to compare to.true if this Address is equal to the other address, else false.public java.lang.String toString()
Address.toString in class java.lang.ObjectAddress.public final int compareTo(Address other)
Address instances numerically.compareTo in interface java.lang.Comparable<Address>other - the other Address to compare to.0 if other is equal to this instance, -1 if this
instance is numerically less than other or 1 if this instance is
numerically greater than other.public final boolean isNull()