com.ibm.icu.util.NoUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icu4j Show documentation
Show all versions of icu4j Show documentation
International Component for Unicode for Java (ICU4J) is a mature, widely used Java library
providing Unicode and Globalization support
// © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
package com.ibm.icu.util;
import com.ibm.icu.number.NumberFormatter;
/**
* Dimensionless unit for percent and permille.
* @see NumberFormatter
* @stable ICU 68
*/
public final class NoUnit {
/**
* Constant for the base unit (dimensionless and no scaling).
*
* Prior to ICU 68, this constant equaled an instance of NoUnit.
*
* Since ICU 68, this constant equals null.
*
* @stable ICU 68
*/
public static final MeasureUnit BASE = null;
/**
* Constant for the percent unit, or 1/100 of a base unit.
*
* Prior to ICU 68, this constant equaled an instance of NoUnit.
*
* Since ICU 68, this constant is equivalent to MeasureUnit.PERCENT.
*
* @stable ICU 68
*/
public static final MeasureUnit PERCENT = MeasureUnit.PERCENT;
/**
* Constant for the permille unit, or 1/100 of a base unit.
*
* Prior to ICU 68, this constant equaled an instance of NoUnit.
*
* Since ICU 68, this constant is equivalent to MeasureUnit.PERMILLE.
*
* @stable ICU 68
*/
public static final MeasureUnit PERMILLE = MeasureUnit.PERMILLE;
// This class is a namespace not intended to be instantiated:
private NoUnit() {}
}