|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.grids.utilities.UnsignedLongPowersOf2
public class UnsignedLongPowersOf2
TODO: docs
Field Summary | |
---|---|
long[] |
powersOf2
For storing the powers Of 2 |
Constructor Summary | |
---|---|
UnsignedLongPowersOf2()
Creates a new instance of PowersOf2 Defaults array to length 63. |
|
UnsignedLongPowersOf2(boolean ascending)
Creates a new instance of PowersOf2 Defaults array to length 63. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
For testing... |
long |
powerOf2(int value)
Returns 2 raised to the power of value as a long. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long[] powersOf2
Constructor Detail |
---|
public UnsignedLongPowersOf2()
public UnsignedLongPowersOf2(boolean ascending)
Method Detail |
---|
public static void main(java.lang.String[] args)
public long powerOf2(int value)
value
- TODO: move this to the chunk master and have as a long[]. The look up
should be faster than the creation on the fly.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |