1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2017 and later: Unicode, Inc. and others. 3 // License & terms of use: http://www.unicode.org/copyright.html#License 4 package ohos.global.icu.util; 5 6 import ohos.global.icu.number.NumberFormatter; 7 8 /** 9 * Dimensionless unit for percent and permille. 10 * @see NumberFormatter 11 * @hide exposed on OHOS 12 * @hide draft / provisional / internal are hidden on OHOS 13 */ 14 public class NoUnit extends MeasureUnit { 15 private static final long serialVersionUID = 2467174286237024095L; 16 17 /** 18 * Constant for the base unit (dimensionless and no scaling). 19 * 20 * @hide draft / provisional / internal are hidden on OHOS 21 */ 22 public static final NoUnit BASE = 23 (NoUnit) MeasureUnit.internalGetInstance("none", "base"); 24 25 /** 26 * Constant for the percent unit, or 1/100 of a base unit. 27 * 28 * @hide draft / provisional / internal are hidden on OHOS 29 */ 30 public static final NoUnit PERCENT = 31 (NoUnit) MeasureUnit.internalGetInstance("none", "percent"); 32 33 /** 34 * Constant for the permille unit, or 1/100 of a base unit. 35 * 36 * @hide draft / provisional / internal are hidden on OHOS 37 */ 38 public static final NoUnit PERMILLE = 39 (NoUnit) MeasureUnit.internalGetInstance("none", "permille"); 40 41 42 /** 43 * Package local constructor. This class is not designed for subclassing 44 * by ICU users. 45 * 46 * @param subType The unit subtype. 47 */ NoUnit(String subType)48 NoUnit(String subType) { 49 super("none", subType); 50 } 51 } 52