All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.icu.text.MeasureFormat Maven / Gradle / Ivy

Go to download

Vaadin is a web application framework for Rich Internet Applications (RIA). Vaadin enables easy development and maintenance of fast and secure rich web applications with a stunning look and feel and a wide browser support. It features a server-side architecture with the majority of the logic running on the server. Ajax technology is used at the browser-side to ensure a rich and interactive user experience.

There is a newer version: 1.2.0
Show newest version
/*
**********************************************************************
* Copyright (c) 2004-2011, International Business Machines
* Corporation and others.  All Rights Reserved.
**********************************************************************
* Author: Alan Liu
* Created: April 20, 2004
* Since: ICU 3.0
**********************************************************************
*/
package com.ibm.icu.text;

import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.ULocale.Category;

/**
 * A formatter for Measure objects.  This is an abstract base class.
 *
 * 

To format or parse a Measure object, first create a formatter * object using a MeasureFormat factory method. Then use that * object's format and parse methods. * * @see com.ibm.icu.text.UFormat * @author Alan Liu * @stable ICU 3.0 */ public abstract class MeasureFormat extends UFormat { // Generated by serialver from JDK 1.4.1_01 static final long serialVersionUID = -7182021401701778240L; /** * @internal * @deprecated This API is ICU internal only. */ protected MeasureFormat() {} /** * Return a formatter for CurrencyAmount objects in the given * locale. * @param locale desired locale * @return a formatter object * @stable ICU 3.0 */ public static MeasureFormat getCurrencyFormat(ULocale locale) { return new CurrencyFormat(locale); } /** * Return a formatter for CurrencyAmount objects in the default * FORMAT locale. * @return a formatter object * @see Category#FORMAT * @stable ICU 3.0 */ public static MeasureFormat getCurrencyFormat() { return getCurrencyFormat(ULocale.getDefault(Category.FORMAT)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy