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

com.ibm.icu.util.NoUnit Maven / Gradle / Ivy

The newest version!
// © 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() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy