In C, a long can be either 32 bits or 64bits, depending on the platform.
long in the C definition with
a NativeLong.
| Modifier and Type | Class and Description |
|---|---|
| private static class | NativeLong.
Internal cache of common native long values |
| Modifier and Type | Field and Description |
|---|---|
| private static final NativeLong | |
| private static final NativeLong | |
| private final long | |
| private static final NativeLong |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static NativeLong | |
| private static NativeLong | |
| public final int | Returns: 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.the other NativeLong to compare to. other)Implements java. NativeLong instances numerically.
|
| public final double | Returns: andouble value for this NativeLong.Implements abstract java. double representation of this NativeLong.
|
| public final boolean | Returns: true if this NativeLong is equal to the other
NativeLong, else false.the other obj)NativeLong to compare to.Overrides java. NativeLong to another NativeLong.
|
| public final float | Returns: anfloat value for this NativeLong.Implements abstract java. float representation of this NativeLong.
|
| public final int | Returns: a hash code for thisNativeLong.Overrides java. NativeLong.
|
| public final int | Returns: an integer value for thisNativeLong.Implements abstract java. NativeLong.
|
| public final long | Returns: anlong value for this NativeLong.Implements abstract java. long representation of this NativeLong.
|
| public String | Returns: a string representation of thisNativeLong.Overrides java. NativeLong.
|
| public static NativeLong | Returns: aNativeLong instance representing valuea long value value)Returns a NativeLong instance representing the specified long value |
| public static NativeLong | Returns: aNativeLong instance representing valuea 32bit integer value value)Returns a NativeLong instance representing the specified int value |
| MINUS_ONE | back to summary |
|---|---|
| private static final NativeLong MINUS_ONE | |
| ONE | back to summary |
|---|---|
| private static final NativeLong ONE | |
| value | back to summary |
|---|---|
| private final long value | |
| ZERO | back to summary |
|---|---|
| private static final NativeLong ZERO | |
| NativeLong | back to summary |
|---|---|
| public NativeLong(long value) Creates a new
| |
| NativeLong | back to summary |
|---|---|
| public NativeLong(int value) Creates a new
| |
| _valueOf | back to summary |
|---|---|
| private static NativeLong _valueOf(final long value) | |
| _valueOf | back to summary |
|---|---|
| private static NativeLong _valueOf(final int value) | |
| compareTo | back to summary |
|---|---|
| public final int compareTo(NativeLong other) Implements java. Compares two
| |
| doubleValue | back to summary |
|---|---|
| public final double doubleValue() Implements abstract java. Returns an
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object obj) Overrides java. Compares this | |
| floatValue | back to summary |
|---|---|
| public final float floatValue() Implements abstract java. Returns an
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Gets a hash code for this
| |
| intValue | back to summary |
|---|---|
| public final int intValue() Implements abstract java. Returns an integer representation of this
| |
| longValue | back to summary |
|---|---|
| public final long longValue() Implements abstract java. Returns an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |
| valueOf | back to summary |
|---|---|
| public static NativeLong valueOf(final long value) Returns a NativeLong instance representing the specified long value
| |
| valueOf | back to summary |
|---|---|
| public static NativeLong valueOf(final int value) Returns a NativeLong instance representing the specified int value
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final NativeLong[] |
| Access | Constructor and Description |
|---|---|
| private |
| cache | back to summary |
|---|---|
| pack-priv static final NativeLong[] cache | |
| Cache | back to summary |
|---|---|
| private Cache() | |