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

International Component for Unicode for Java (ICU4J) is a mature, widely used Java library providing Unicode and Globalization support

There is a newer version: 76.1
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