|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
com.kenai.jaffl.Address
public class Address
Represents a native memory address.
Field Summary | |
---|---|
protected long |
address
|
static long |
MASK
|
static int |
SHIFT
|
static int |
SIZE
|
Constructor Summary | |
---|---|
Address(Address address)
Creates a new address representation. |
|
Address(long address)
Creates a new address representation. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SIZE
public static final int SHIFT
public static final long MASK
protected final long address
Constructor Detail |
---|
public Address(long address)
address
- the native address.public Address(Address address)
address
- the native address.Method Detail |
---|
public static final Address valueOf(long address)
public final int intValue()
intValue
in class java.lang.Number
public final long longValue()
long
representation of this address.
longValue
in class java.lang.Number
long
value for this address.public final float floatValue()
float
representation of this address.
floatValue
in class java.lang.Number
float
value for this address.public final double doubleValue()
double
representation of this address.
doubleValue
in class java.lang.Number
double
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.Object
Address
.public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- 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.Object
Address
.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |