The list of methods to do Integer Align are organized into topic(s).
int
align(final int value, final int pow2alignment) Fast alignment operation with power of 2 alignment and value >=0 and value < Integer#MAX_VALUE .
In order to be fast is up to the caller to check arguments correctness.
return (value + (pow2alignment - 1)) & ~(pow2alignment - 1);
String
align(int cur, int longest) Returns a string with the number of spaces to align two strings.
String toret = "";
for (int i = cur; i < longest; i++) {
toret = toret.concat(" ");
return toret;
String
align(int i) align
String s = String.valueOf(i);
if (s.length() == 0) {
return "00" + s;
if (s.length() == 1) {
return "0" + s;
return s;
...
int
align(int size) Align |size| on BindingsHelper#ALIGNMENT .
return (size + ALIGNMENT - 1) & ~(ALIGNMENT - 1);