| java.lang.Object de.anomic.tools.yFormatter
yFormatter | final public class yFormatter (Code) | | This class provides simple Formatters to unify YaCy's output
formattings.
At the moment yFormatter can be used to format numbers according
to the locale set for YaCy.
|
number | public static String number(double d, boolean localized)(Code) | | |
number | public static String number(long l, boolean localized)(Code) | | |
number | public static String number(String s)(Code) | | Method formats String representation of numbers according to the formatting
rules for numbers defined by this class. This method is probably only useful
for "numbers" read from property files.
Parameters: s - string to parse into a number and reformat the formatted number as a String or "-" in case of a parsing error |
setLocale | public static void setLocale(Locale locale)(Code) | | Parameters: locale - the Locale to set or null to set the specialempty locale to create unformatted numbers |
setLocale | public static void setLocale(String lang)(Code) | | Parameters: lang - an ISO 639 language code which is used to generate a Locale |
|
|