All Packages Class Hierarchy This Package Previous Next Index
Class multilizer.Utils
java.lang.Object
|
+----multilizer.Utils
- public class Utils
- extends Object
-
FEET_IN_YARD_C
-
-
FOOT_IN_METERS_C
-
-
FURLONG_IN_METERS_C
-
-
FURLONGS_IN_MILE_C
-
-
INCH_IN_FEET_C
-
-
INCH_IN_METERS_C
-
-
METRIC_MEASUREMENT
-
-
MILE_IN_METERS
-
-
OUNCE_IN_KILOGRAMS_C
-
-
OUNCES_IN_POUND_C
-
-
POUND_IN_KILOGRAMS_C
-
-
POUNDS_IN_TON_C
-
-
TON_IN_KILOGRAMS_C
-
-
US_MEASUREMENT
-
-
YARD_IN_METERS_C
-
-
YARDS_IN_FURLONG_C
-
-
Utils()
-
-
formatMessage(String, String[], StringTranslator)
- Formats the message using the given parameters
-
getEMUPhase(Locale)
- Returns the current phase of EMU (European Moneraty Union) in the give locale.
-
getLocaleName(Locale, StringTranslator)
- Gets the locale name in the active language
-
getMeasurementSystem(Locale)
- Gets the measurement system that the given locale uses
METRIC_MEASUREMENT
public static final int METRIC_MEASUREMENT
US_MEASUREMENT
public static final int US_MEASUREMENT
INCH_IN_FEET_C
public static final int INCH_IN_FEET_C
FEET_IN_YARD_C
public static final int FEET_IN_YARD_C
YARDS_IN_FURLONG_C
public static final int YARDS_IN_FURLONG_C
FURLONGS_IN_MILE_C
public static final int FURLONGS_IN_MILE_C
INCH_IN_METERS_C
public static final double INCH_IN_METERS_C
FOOT_IN_METERS_C
public static final double FOOT_IN_METERS_C
YARD_IN_METERS_C
public static final double YARD_IN_METERS_C
FURLONG_IN_METERS_C
public static final double FURLONG_IN_METERS_C
MILE_IN_METERS
public static final double MILE_IN_METERS
OUNCES_IN_POUND_C
public static final double OUNCES_IN_POUND_C
POUNDS_IN_TON_C
public static final double POUNDS_IN_TON_C
OUNCE_IN_KILOGRAMS_C
public static final double OUNCE_IN_KILOGRAMS_C
POUND_IN_KILOGRAMS_C
public static final double POUND_IN_KILOGRAMS_C
TON_IN_KILOGRAMS_C
public static final double TON_IN_KILOGRAMS_C
Utils
public Utils()
getEMUPhase
public static int getEMUPhase(Locale locale)
- Returns the current phase of EMU (European Moneraty Union) in the give locale.
- Parameters:
- locale - the locale that is used
- See Also:
- isEMUMember, EMU_NONE, EMU_NATIONAL, EMU_NATIONAL_AND_EURO, EMU_EURO_AND_NATIONAL, EMU_EURO
getLocaleName
public static String getLocaleName(Locale locale,
StringTranslator translator)
- Gets the locale name in the active language
- Parameters:
- locale - the locale that is used
- dictionary - the dictionary that is used to translate the strings
- Returns:
- the name of the locale in the current language of the dictionary
getMeasurementSystem
public static int getMeasurementSystem(Locale locale)
- Gets the measurement system that the given locale uses
- Parameters:
- locale - the locale that is used
- Returns:
- METRIC_MEASUREMENT or US_MEASUREMENT
formatMessage
public static String formatMessage(String pattern,
String arguments[],
StringTranslator translator)
- Formats the message using the given parameters
- Parameters:
- format - the format string. It can contain {N} tokens where N is 0..parameter count - 1.
- arguments - the array of String parameters
All Packages Class Hierarchy This Package Previous Next Index