com.kenai.jaffl
public class Address extends Number implements Comparable<Address>
Field Summary | |
---|---|
protected long | address |
static long | MASK |
static int | SHIFT |
static int | SIZE |
Constructor Summary | |
---|---|
Address(long address)
Creates a new address representation.
| |
Address(Address address)
Creates a new address representation.
|
Method Summary | |
---|---|
int | compareTo(Address other)
Compares two {@code Address} instances numerically.
|
boolean | isNull()
Tests if this Address is equivalent to C NULL
|
long | nativeAddress()
Returns the native value of this address.
|
static Address | valueOf(long address) |
Parameters: address the native address.
Parameters: address the native address.
Parameters: other the other Address to compare to.
Returns: {@code 0} if {@code other} is equal to this instance, -1 if this instance is numerically less than {@code other} or 1 if this instance is numerically greater than {@code other}.
Returns: true if the address is 0
Returns: an {@code long} value representing the native value of this address.