| java.lang.Object org.apache.lucene.benchmark.byTask.utils.Format
Format | public class Format (Code) | | Formatting utilities (for reports).
|
Method Summary | |
public static String | format(int numFracDigits, float f, String col) Padd a number from left.
Parameters: numFracDigits - number of digits in fraction part - must be 0 or 1 or 2. Parameters: f - number to be formatted. Parameters: col - column name (used for deciding on length). | public static String | format(int numFracDigits, double f, String col) | public static String | format(int n, String col) Padd a number from left.
Parameters: n - number to be formatted. Parameters: col - column name (used for deciding on length). | public static String | format(String s, String col) Padd a string from right.
Parameters: s - string to be formatted. Parameters: col - column name (used for deciding on length). | public static String | formatPaddLeft(String s, String col) Padd a string from left.
Parameters: s - string to be formatted. Parameters: col - column name (used for deciding on length). | public static String | formatPaddRight(int numFracDigits, float f, String col) Padd a number from right.
Parameters: numFracDigits - number of digits in fraction part - must be 0 or 1 or 2. Parameters: f - number to be formatted. Parameters: col - column name (used for deciding on length). | public static String | formatPaddRight(int numFracDigits, double f, String col) | public static String | simpleName(Class cls) |
format | public static String format(int numFracDigits, float f, String col)(Code) | | Padd a number from left.
Parameters: numFracDigits - number of digits in fraction part - must be 0 or 1 or 2. Parameters: f - number to be formatted. Parameters: col - column name (used for deciding on length). formatted string. |
format | public static String format(int n, String col)(Code) | | Padd a number from left.
Parameters: n - number to be formatted. Parameters: col - column name (used for deciding on length). formatted string. |
format | public static String format(String s, String col)(Code) | | Padd a string from right.
Parameters: s - string to be formatted. Parameters: col - column name (used for deciding on length). formatted string. |
formatPaddLeft | public static String formatPaddLeft(String s, String col)(Code) | | Padd a string from left.
Parameters: s - string to be formatted. Parameters: col - column name (used for deciding on length). formatted string. |
formatPaddRight | public static String formatPaddRight(int numFracDigits, float f, String col)(Code) | | Padd a number from right.
Parameters: numFracDigits - number of digits in fraction part - must be 0 or 1 or 2. Parameters: f - number to be formatted. Parameters: col - column name (used for deciding on length). formatted string. |
formatPaddRight | public static String formatPaddRight(int numFracDigits, double f, String col)(Code) | | |
simpleName | public static String simpleName(Class cls)(Code) | | Extract simple class name
Parameters: cls - class whose simple name is required simple class name |
|
|