|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.lang.NumberHelper
public class NumberHelper
Implementations of java.lang.Integer and other Number methods added in jdk5 Code from http://www.hackersdelight.org/HDcode.htm
Constructor Summary | |
---|---|
NumberHelper()
|
Method Summary | |
---|---|
static int |
bitCount(int i)
http://www.hackersdelight.org/HDcode/pop.c |
static int |
bitCount(long i)
|
static int |
highestOneBit(int i)
http://www.hackersdelight.org/HDcode/flp2.c |
static long |
highestOneBit(long i)
|
static int |
lowestOneBit(int i)
http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=bitManipulation |
static long |
lowestOneBit(long i)
|
static int |
numberOfLeadingZeros(int i)
http://www.hackersdelight.org/HDcode/nlz.c |
static int |
numberOfLeadingZeros(long i)
|
static int |
numberOfTrailingZeros(int i)
http://www.hackersdelight.org/HDcode/ntz.c |
static int |
numberOfTrailingZeros(long i)
|
static int |
reverse(int i)
http://www.hackersdelight.org/HDcode/reverse.c |
static long |
reverse(long i)
|
static int |
reverseBytes(int i)
|
static long |
reverseBytes(long i)
|
static int |
rotateLeft(int i,
int distance)
|
static long |
rotateLeft(long i,
int distance)
|
static int |
rotateRight(int i,
int distance)
|
static long |
rotateRight(long i,
int distance)
|
static int |
signum(int i)
|
static int |
signum(long i)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberHelper()
Method Detail |
---|
public static int highestOneBit(int i)
http://www.hackersdelight.org/HDcode/flp2.c
public static int lowestOneBit(int i)
http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=bitManipulation
public static int numberOfLeadingZeros(int i)
http://www.hackersdelight.org/HDcode/nlz.c
public static int numberOfTrailingZeros(int i)
http://www.hackersdelight.org/HDcode/ntz.c
public static int bitCount(int i)
http://www.hackersdelight.org/HDcode/pop.c
public static int rotateLeft(int i, int distance)
public static int rotateRight(int i, int distance)
public static int reverse(int i)
http://www.hackersdelight.org/HDcode/reverse.c
public static int signum(int i)
public static int reverseBytes(int i)
public static long highestOneBit(long i)
public static long lowestOneBit(long i)
public static int numberOfLeadingZeros(long i)
public static int numberOfTrailingZeros(long i)
public static int bitCount(long i)
public static long rotateLeft(long i, int distance)
public static long rotateRight(long i, int distance)
public static long reverse(long i)
public static int signum(long i)
public static long reverseBytes(long i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |