|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.util.Formatter
public class Formatter
A little helper class for formatting.
Constructor Summary | |
---|---|
Formatter()
|
Method Summary | |
---|---|
static java.lang.String |
format(int number,
int length)
formats the given number right-aligned with the given length and the filler ' ' |
static java.lang.String |
format(int number,
int length,
boolean right)
formats the given number either left or right-aligned with the given length and the filler ' ' |
static java.lang.String |
format(int number,
int length,
boolean right,
char filler)
formats the given number either left or right-aligned with the given length and the given filler (e.g. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Formatter()
Method Detail |
---|
public static java.lang.String format(int number, int length)
public static java.lang.String format(int number, int length, boolean right)
public static java.lang.String format(int number, int length, boolean right, char filler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |