|
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.IntegerHelper
public class IntegerHelper
| Constructor Summary | |
|---|---|
IntegerHelper()
|
|
| Method Summary | |
|---|---|
static int |
bitCount(int i)
Counts the number of 1 bits in the int value passed; this is sometimes referred to as a population
count. |
static int |
highestOneBit(int i)
Determines the highest (leftmost) bit that is 1 and returns the value that is the bit mask for that bit. |
static int |
numberOfLeadingZeros(int i)
Determines the number of leading zeros in the int passed prior to the highest one bit. |
static int |
numberOfTrailingZeros(int i)
Determines the number of trailing zeros in the int passed after the lowest
one bit. |
static int |
signum(int i)
The signum function for int values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerHelper()
| Method Detail |
|---|
public static int bitCount(int i)
Counts the number of 1 bits in the int value passed; this is sometimes referred to as a population
count.
i - The int value to process.
public static int numberOfLeadingZeros(int i)
Determines the number of leading zeros in the int passed prior to the highest one bit.
i - The int to process.
public static int numberOfTrailingZeros(int i)
Determines the number of trailing zeros in the int passed after the lowest
one bit.
i - The int to process.
public static int highestOneBit(int i)
Determines the highest (leftmost) bit that is 1 and returns the value that is the bit mask for that bit. This is sometimes referred to as the Most Significant 1 Bit.
i - The int to interrogate.
public static int signum(int i)
The signum function for int values. This method returns -1 for negative values, 1 for
positive values and 0 for the value 0.
i - The int value.
|
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 | ||||||||