|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.lang.LongHelper
public class LongHelper
Constructor Summary | |
---|---|
LongHelper()
|
Method Summary | |
---|---|
static int |
bitCount(long lng)
Counts the number of 1 bits in the long value passed; this is sometimes referred to as a population
count. |
static int |
compareTo(java.lang.Long objectA,
java.lang.Long objectB)
|
static int |
numberOfLeadingZeros(long lng)
Determines the number of leading zeros in the long passed prior to the highest one bit . |
static int |
numberOfTrailingZeros(long lng)
Determines the number of trailing zeros in the long passed after the lowest
one bit . |
static int |
signum(long lng)
The signum function for long values. |
static java.lang.String |
toHexString(long l)
Answers a string containing characters in the range 0..7, a..f which describe the hexadecimal representation of the argument. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongHelper()
Method Detail |
---|
public static int numberOfLeadingZeros(long lng)
Determines the number of leading zeros in the long
passed prior to the highest one bit
.
lng
- The long
to process.
public static int numberOfTrailingZeros(long lng)
Determines the number of trailing zeros in the long
passed after the lowest
one bit
.
lng
- The long
to process.
public static int bitCount(long lng)
Counts the number of 1 bits in the long
value passed; this is sometimes referred to as a population
count.
lng
- The long
value to process.
public static int signum(long lng)
The signum
function for long
values. This method returns -1 for negative values, 1 for
positive values and 0 for the value 0.
lng
- The long
value.
public static java.lang.String toHexString(long l)
l
- a long to get the hex representation of
public static int compareTo(java.lang.Long objectA, java.lang.Long objectB)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |