com.kenai.jaffl
public final class NativeLong extends Number implements Comparable<NativeLong>
In C, a long can be either 32 bits or 64bits, depending on the platform.
Replace any function parameters which are long in the C definition with a NativeLong.| Field Summary | |
|---|---|
| static long | MASK |
| static int | SHIFT |
| static int | SIZE |
| Constructor Summary | |
|---|---|
| NativeLong(long value)
Creates a new NativeLong instance with the supplied value.
| |
| Method Summary | |
|---|---|
| int | compareTo(NativeLong other)
Compares two {@code NativeLong} instances numerically.
|
| static NativeLong | valueOf(long value)
Returns a NativeLong instance representing the specified long value
|
| static NativeLong | valueOf(int value)
Returns a NativeLong instance representing the specified int value
|
Parameters: value a long or integer.
Parameters: other the other NativeLong 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}.
Parameters: value a long value
Returns: a NativeLong instance representing value
Parameters: value a 32bit integer value
Returns: a NativeLong instance representing value