All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class multilizer.Utils

java.lang.Object
   |
   +----multilizer.Utils

public class Utils
extends Object

Variable Index

 o FEET_IN_YARD_C
 o FOOT_IN_METERS_C
 o FURLONG_IN_METERS_C
 o FURLONGS_IN_MILE_C
 o INCH_IN_FEET_C
 o INCH_IN_METERS_C
 o METRIC_MEASUREMENT
 o MILE_IN_METERS
 o OUNCE_IN_KILOGRAMS_C
 o OUNCES_IN_POUND_C
 o POUND_IN_KILOGRAMS_C
 o POUNDS_IN_TON_C
 o TON_IN_KILOGRAMS_C
 o US_MEASUREMENT
 o YARD_IN_METERS_C
 o YARDS_IN_FURLONG_C

Constructor Index

 o Utils()

Method Index

 o formatMessage(String, String[], StringTranslator)
Formats the message using the given parameters
 o getEMUPhase(Locale)
Returns the current phase of EMU (European Moneraty Union) in the give locale.
 o getLocaleName(Locale, StringTranslator)
Gets the locale name in the active language
 o getMeasurementSystem(Locale)
Gets the measurement system that the given locale uses

Variables

 o METRIC_MEASUREMENT
 public static final int METRIC_MEASUREMENT
 o US_MEASUREMENT
 public static final int US_MEASUREMENT
 o INCH_IN_FEET_C
 public static final int INCH_IN_FEET_C
 o FEET_IN_YARD_C
 public static final int FEET_IN_YARD_C
 o YARDS_IN_FURLONG_C
 public static final int YARDS_IN_FURLONG_C
 o FURLONGS_IN_MILE_C
 public static final int FURLONGS_IN_MILE_C
 o INCH_IN_METERS_C
 public static final double INCH_IN_METERS_C
 o FOOT_IN_METERS_C
 public static final double FOOT_IN_METERS_C
 o YARD_IN_METERS_C
 public static final double YARD_IN_METERS_C
 o FURLONG_IN_METERS_C
 public static final double FURLONG_IN_METERS_C
 o MILE_IN_METERS
 public static final double MILE_IN_METERS
 o OUNCES_IN_POUND_C
 public static final double OUNCES_IN_POUND_C
 o POUNDS_IN_TON_C
 public static final double POUNDS_IN_TON_C
 o OUNCE_IN_KILOGRAMS_C
 public static final double OUNCE_IN_KILOGRAMS_C
 o POUND_IN_KILOGRAMS_C
 public static final double POUND_IN_KILOGRAMS_C
 o TON_IN_KILOGRAMS_C
 public static final double TON_IN_KILOGRAMS_C

Constructors

 o Utils
 public Utils()

Methods

 o 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
 o 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
 o 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
 o 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