ICU-10484 Fixed a bunch of API doc problems.
X-SVN-Rev: 34912
This commit is contained in:
parent
16b105509e
commit
ebb804aaeb
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2008-2013, Google Inc, International Business Machines Corporation
|
||||
* Copyright (C) 2008-2014, Google Inc, International Business Machines Corporation
|
||||
* and others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -958,7 +958,26 @@ public final class AlphabeticIndex<V> implements Iterable<Bucket<V>> {
|
||||
* @stable ICU 4.8
|
||||
*/
|
||||
public enum LabelType {
|
||||
NORMAL, UNDERFLOW, INFLOW, OVERFLOW
|
||||
/**
|
||||
* Normal
|
||||
* @stable ICU 4.8
|
||||
*/
|
||||
NORMAL,
|
||||
/**
|
||||
* Underflow (before the first)
|
||||
* @stable ICU 4.8
|
||||
*/
|
||||
UNDERFLOW,
|
||||
/**
|
||||
* Inflow (between scripts)
|
||||
* @stable ICU 4.8
|
||||
*/
|
||||
INFLOW,
|
||||
/**
|
||||
* Overflow (after the last)
|
||||
* @stable ICU 4.8
|
||||
*/
|
||||
OVERFLOW
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -264,7 +264,7 @@ public class MeasureFormat extends UFormat {
|
||||
*
|
||||
* @param obj must be a Collection<? extends Measure>, Measure[], or Measure object.
|
||||
* @param toAppendTo Formatted string appended here.
|
||||
* @pram pos Identifies a field in the formatted text.
|
||||
* @param pos Identifies a field in the formatted text.
|
||||
* @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
|
||||
*
|
||||
* @draft ICU53
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2007-2013, International Business Machines Corporation and
|
||||
* Copyright (C) 2007-2014, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -780,7 +780,18 @@ public class PluralRules implements Serializable {
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public enum SampleType {INTEGER, DECIMAL}
|
||||
public enum SampleType {
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
INTEGER,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
DECIMAL
|
||||
}
|
||||
|
||||
/**
|
||||
* A range of NumberInfo that includes all values with the same visibleFractionDigitCount.
|
||||
@ -1656,11 +1667,35 @@ public class PluralRules implements Serializable {
|
||||
* @internal
|
||||
*/
|
||||
public enum StandardPluralCategories {
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
zero,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
one,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
two,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
few,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
many,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
other;
|
||||
static StandardPluralCategories forString(String s) {
|
||||
StandardPluralCategories a;
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2003-2013, Google, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
********************************************************************************
|
||||
* Copyright (C) 2003-2014, Google, International Business Machines Corporation *
|
||||
* and others. All Rights Reserved. *
|
||||
********************************************************************************
|
||||
*/
|
||||
package com.ibm.icu.util;
|
||||
|
||||
@ -21,6 +21,7 @@ import com.ibm.icu.impl.SimpleCache;
|
||||
* Provide information about gender in locales based on data in CLDR. Currently supplies gender of lists.
|
||||
* @author markdavis
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public class GenderInfo {
|
||||
|
||||
@ -29,13 +30,31 @@ public class GenderInfo {
|
||||
/**
|
||||
* Gender: OTHER means either the information is unavailable, or the person has declined to state MALE or FEMALE.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public enum Gender {MALE, FEMALE, OTHER}
|
||||
public enum Gender {
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
MALE,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
FEMALE,
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
OTHER
|
||||
}
|
||||
|
||||
/**
|
||||
* Create GenderInfo from a ULocale.
|
||||
* @param uLocale desired locale
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public static GenderInfo getInstance(ULocale uLocale) {
|
||||
return genderInfoCache.get(uLocale);
|
||||
@ -45,6 +64,7 @@ public class GenderInfo {
|
||||
* Create GenderInfo from a Locale.
|
||||
* @param locale desired locale
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public static GenderInfo getInstance(Locale locale) {
|
||||
return getInstance(ULocale.forLocale(locale));
|
||||
@ -55,12 +75,15 @@ public class GenderInfo {
|
||||
* This only affects gender for lists more than one. For lists of 1 item, the gender
|
||||
* of the list always equals the gender of that sole item.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public enum ListGenderStyle {
|
||||
/**
|
||||
* For an empty list, returns OTHER;
|
||||
* For a single item, returns its gender;
|
||||
* Otherwise always OTHER.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
NEUTRAL,
|
||||
/**
|
||||
@ -68,6 +91,8 @@ public class GenderInfo {
|
||||
* For a single item, returns its gender;
|
||||
* Otherwise gender(all male) = male, gender(all female) = female, otherwise gender(list) = other.
|
||||
* So any 'other' value makes the overall gender be 'other'.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
MIXED_NEUTRAL,
|
||||
/**
|
||||
@ -75,6 +100,8 @@ public class GenderInfo {
|
||||
* For a single item, returns its gender;
|
||||
* Otherwise, gender(all female) = female, otherwise gender(list) = male.
|
||||
* So for more than one item, any 'other' value makes the overall gender be 'male'.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
MALE_TAINTS;
|
||||
|
||||
@ -89,6 +116,7 @@ public class GenderInfo {
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public static ListGenderStyle fromName(String name) {
|
||||
ListGenderStyle result = fromNameMap.get(name);
|
||||
@ -104,6 +132,7 @@ public class GenderInfo {
|
||||
* @param genders a list of genders.
|
||||
* @return the gender of the list.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public Gender getListGender(Gender... genders) {
|
||||
return getListGender(Arrays.asList(genders));
|
||||
@ -114,6 +143,7 @@ public class GenderInfo {
|
||||
* @param genders a list of genders.
|
||||
* @return the gender of the list.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public Gender getListGender(List<Gender> genders) {
|
||||
if (genders.size() == 0) {
|
||||
@ -164,6 +194,7 @@ public class GenderInfo {
|
||||
* Only for testing and use with CLDR.
|
||||
* @param genderStyle gender style
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public GenderInfo(ListGenderStyle genderStyle) {
|
||||
style = genderStyle;
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2004-2013, Google Inc, International Business Machines *
|
||||
* Copyright (C) 2004-2014, Google Inc, International Business Machines *
|
||||
* Corporation and others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -67,7 +67,7 @@ public class MeasureUnit implements Serializable {
|
||||
* Get the type, such as "length"
|
||||
*
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
@ -78,7 +78,7 @@ public class MeasureUnit implements Serializable {
|
||||
* Get the subType, such as “foot”.
|
||||
*
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getSubtype() {
|
||||
return subType;
|
||||
@ -88,7 +88,7 @@ public class MeasureUnit implements Serializable {
|
||||
|
||||
/**
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
@ -97,7 +97,7 @@ public class MeasureUnit implements Serializable {
|
||||
|
||||
/**
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object rhs) {
|
||||
@ -113,7 +113,7 @@ public class MeasureUnit implements Serializable {
|
||||
|
||||
/**
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
@ -124,7 +124,7 @@ public class MeasureUnit implements Serializable {
|
||||
* Get all of the available units' types. Returned set is unmodifiable.
|
||||
*
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public synchronized static Set<String> getAvailableTypes() {
|
||||
return Collections.unmodifiableSet(cache.keySet());
|
||||
@ -135,7 +135,7 @@ public class MeasureUnit implements Serializable {
|
||||
* @param type the type
|
||||
* @return the available units for type. Returned set is unmodifiable.
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public synchronized static Set<MeasureUnit> getAvailable(String type) {
|
||||
Map<String, MeasureUnit> units = cache.get(type);
|
||||
@ -149,7 +149,7 @@ public class MeasureUnit implements Serializable {
|
||||
* Get all of the available units. Returned set is unmodifiable.
|
||||
*
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public synchronized static Set<MeasureUnit> getAvailable() {
|
||||
Set<MeasureUnit> result = new HashSet<MeasureUnit>();
|
||||
@ -291,111 +291,327 @@ public class MeasureUnit implements Serializable {
|
||||
return unit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Useful constants. Not necessarily complete: see {@link #getAvailable()}.
|
||||
* @draft ICU 53
|
||||
* @provisional
|
||||
*/
|
||||
public static final MeasureUnit
|
||||
/** Constant for unit of acceleration: g-force */
|
||||
G_FORCE = MeasureUnit.internalGetInstance("acceleration", "g-force"),
|
||||
/** Constant for unit of angle: degree */
|
||||
DEGREE = MeasureUnit.internalGetInstance("angle", "degree"),
|
||||
/** Constant for unit of angle: minute */
|
||||
ARC_MINUTE = MeasureUnit.internalGetInstance("angle", "arc-minute"),
|
||||
/** Constant for unit of angle: second */
|
||||
ARC_SECOND = MeasureUnit.internalGetInstance("angle", "arc-second"),
|
||||
/** Constant for unit of area: acre */
|
||||
ACRE = MeasureUnit.internalGetInstance("area", "acre"),
|
||||
/** Constant for unit of area: hectare */
|
||||
HECTARE = MeasureUnit.internalGetInstance("area", "hectare"),
|
||||
/** Constant for unit of area: square-foot */
|
||||
SQUARE_FOOT = MeasureUnit.internalGetInstance("area", "square-foot"),
|
||||
/** Constant for unit of area: square-kilometer */
|
||||
SQUARE_KILOMETER = MeasureUnit.internalGetInstance("area", "square-kilometer"),
|
||||
/** Constant for unit of area: square-meter */
|
||||
SQUARE_METER = MeasureUnit.internalGetInstance("area", "square-meter"),
|
||||
/** Constant for unit of area: square-mile */
|
||||
SQUARE_MILE = MeasureUnit.internalGetInstance("area", "square-mile"),
|
||||
/** Constant for unit of duration: millisecond */
|
||||
MILLISECOND = MeasureUnit.internalGetInstance("duration", "millisecond"),
|
||||
/** Constant for unit of length: centimeter */
|
||||
CENTIMETER = MeasureUnit.internalGetInstance("length", "centimeter"),
|
||||
/** Constant for unit of length: foot */
|
||||
FOOT = MeasureUnit.internalGetInstance("length", "foot"),
|
||||
/** Constant for unit of length: inch */
|
||||
INCH = MeasureUnit.internalGetInstance("length", "inch"),
|
||||
/** Constant for unit of length: kilometer */
|
||||
KILOMETER = MeasureUnit.internalGetInstance("length", "kilometer"),
|
||||
/** Constant for unit of length: light-year */
|
||||
LIGHT_YEAR = MeasureUnit.internalGetInstance("length", "light-year"),
|
||||
/** Constant for unit of length: meter */
|
||||
METER = MeasureUnit.internalGetInstance("length", "meter"),
|
||||
/** Constant for unit of length: mile */
|
||||
MILE = MeasureUnit.internalGetInstance("length", "mile"),
|
||||
/** Constant for unit of length: millimeter */
|
||||
MILLIMETER = MeasureUnit.internalGetInstance("length", "millimeter"),
|
||||
/** Constant for unit of length: picometer */
|
||||
PICOMETER = MeasureUnit.internalGetInstance("length", "picometer"),
|
||||
/** Constant for unit of length: yard */
|
||||
YARD = MeasureUnit.internalGetInstance("length", "yard"),
|
||||
/** Constant for unit of mass: gram */
|
||||
GRAM = MeasureUnit.internalGetInstance("mass", "gram"),
|
||||
/** Constant for unit of mass: kilogram */
|
||||
KILOGRAM = MeasureUnit.internalGetInstance("mass", "kilogram"),
|
||||
/** Constant for unit of mass: ounce */
|
||||
OUNCE = MeasureUnit.internalGetInstance("mass", "ounce"),
|
||||
/** Constant for unit of mass: pound */
|
||||
POUND = MeasureUnit.internalGetInstance("mass", "pound"),
|
||||
/** Constant for unit of power: horsepower */
|
||||
HORSEPOWER = MeasureUnit.internalGetInstance("power", "horsepower"),
|
||||
/** Constant for unit of power: kilowatt */
|
||||
KILOWATT = MeasureUnit.internalGetInstance("power", "kilowatt"),
|
||||
/** Constant for unit of power: watt */
|
||||
WATT = MeasureUnit.internalGetInstance("power", "watt"),
|
||||
/** Constant for unit of pressure: hectopascal */
|
||||
HECTOPASCAL = MeasureUnit.internalGetInstance("pressure", "hectopascal"),
|
||||
/** Constant for unit of pressure: inch-hg */
|
||||
INCH_HG = MeasureUnit.internalGetInstance("pressure", "inch-hg"),
|
||||
/** Constant for unit of pressure: millibar */
|
||||
MILLIBAR = MeasureUnit.internalGetInstance("pressure", "millibar"),
|
||||
/** Constant for unit of speed: kilometer-per-hour */
|
||||
KILOMETER_PER_HOUR = MeasureUnit.internalGetInstance("speed", "kilometer-per-hour"),
|
||||
/** Constant for unit of speed: meter-per-second */
|
||||
METER_PER_SECOND = MeasureUnit.internalGetInstance("speed", "meter-per-second"),
|
||||
/** Constant for unit of speed: mile-per-hour */
|
||||
MILE_PER_HOUR = MeasureUnit.internalGetInstance("speed", "mile-per-hour"),
|
||||
/** Constant for unit of temperature: celsius */
|
||||
CELSIUS = MeasureUnit.internalGetInstance("temperature", "celsius"),
|
||||
/** Constant for unit of temperature: fahrenheit */
|
||||
FAHRENHEIT = MeasureUnit.internalGetInstance("temperature", "fahrenheit"),
|
||||
/** Constant for unit of volume: cubic-kilometer */
|
||||
CUBIC_KILOMETER = MeasureUnit.internalGetInstance("volume", "cubic-kilometer"),
|
||||
/** Constant for unit of volume: cubic-mile */
|
||||
CUBIC_MILE = MeasureUnit.internalGetInstance("volume", "cubic-mile"),
|
||||
/** Constant for unit of volume: liter */
|
||||
LITER = MeasureUnit.internalGetInstance("volume", "liter");
|
||||
|
||||
public static TimeUnit
|
||||
/** Constant for unit of duration: year */
|
||||
YEAR = (TimeUnit) MeasureUnit.internalGetInstance("duration", "year"),
|
||||
/** Constant for unit of duration: month */
|
||||
MONTH = (TimeUnit) MeasureUnit.internalGetInstance("duration", "month"),
|
||||
/** Constant for unit of duration: week */
|
||||
WEEK = (TimeUnit) MeasureUnit.internalGetInstance("duration", "week"),
|
||||
/** Constant for unit of duration: day */
|
||||
DAY = (TimeUnit) MeasureUnit.internalGetInstance("duration", "day"),
|
||||
/** Constant for unit of duration: hour */
|
||||
HOUR = (TimeUnit) MeasureUnit.internalGetInstance("duration", "hour"),
|
||||
/** Constant for unit of duration: minute */
|
||||
MINUTE = (TimeUnit) MeasureUnit.internalGetInstance("duration", "minute"),
|
||||
/** Constant for unit of duration: second */
|
||||
SECOND = (TimeUnit) MeasureUnit.internalGetInstance("duration", "second");
|
||||
|
||||
/** Private **/
|
||||
/**
|
||||
* Constant for unit of acceleration: g-force
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit G_FORCE = MeasureUnit.internalGetInstance("acceleration", "g-force");
|
||||
|
||||
/**
|
||||
* Constant for unit of angle: degree
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit DEGREE = MeasureUnit.internalGetInstance("angle", "degree");
|
||||
|
||||
/**
|
||||
* Constant for unit of angle: minute
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit ARC_MINUTE = MeasureUnit.internalGetInstance("angle", "arc-minute");
|
||||
|
||||
/**
|
||||
* Constant for unit of angle: second
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit ARC_SECOND = MeasureUnit.internalGetInstance("angle", "arc-second");
|
||||
|
||||
/**
|
||||
* Constant for unit of area: acre
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit ACRE = MeasureUnit.internalGetInstance("area", "acre");
|
||||
|
||||
/**
|
||||
* Constant for unit of area: hectare
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit HECTARE = MeasureUnit.internalGetInstance("area", "hectare");
|
||||
|
||||
/**
|
||||
* Constant for unit of area: square-foot
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit SQUARE_FOOT = MeasureUnit.internalGetInstance("area", "square-foot");
|
||||
|
||||
/**
|
||||
* Constant for unit of area: square-kilometer
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit SQUARE_KILOMETER = MeasureUnit.internalGetInstance("area", "square-kilometer");
|
||||
|
||||
/**
|
||||
* Constant for unit of area: square-meter
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit SQUARE_METER = MeasureUnit.internalGetInstance("area", "square-meter");
|
||||
|
||||
/**
|
||||
* Constant for unit of area: square-mile
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit SQUARE_MILE = MeasureUnit.internalGetInstance("area", "square-mile");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: millisecond
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit MILLISECOND = MeasureUnit.internalGetInstance("duration", "millisecond");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: centimeter
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit CENTIMETER = MeasureUnit.internalGetInstance("length", "centimeter");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: foot
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit FOOT = MeasureUnit.internalGetInstance("length", "foot");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: inch
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit INCH = MeasureUnit.internalGetInstance("length", "inch");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: kilometer
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit KILOMETER = MeasureUnit.internalGetInstance("length", "kilometer");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: light-year
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit LIGHT_YEAR = MeasureUnit.internalGetInstance("length", "light-year");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: meter
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit METER = MeasureUnit.internalGetInstance("length", "meter");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: mile
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit MILE = MeasureUnit.internalGetInstance("length", "mile");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: millimeter
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit MILLIMETER = MeasureUnit.internalGetInstance("length", "millimeter");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: picometer
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit PICOMETER = MeasureUnit.internalGetInstance("length", "picometer");
|
||||
|
||||
/**
|
||||
* Constant for unit of length: yard
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit YARD = MeasureUnit.internalGetInstance("length", "yard");
|
||||
|
||||
/**
|
||||
* Constant for unit of mass: gram
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit GRAM = MeasureUnit.internalGetInstance("mass", "gram");
|
||||
|
||||
/**
|
||||
* Constant for unit of mass: kilogram
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit KILOGRAM = MeasureUnit.internalGetInstance("mass", "kilogram");
|
||||
|
||||
/**
|
||||
* Constant for unit of mass: ounce
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit OUNCE = MeasureUnit.internalGetInstance("mass", "ounce");
|
||||
|
||||
/**
|
||||
* Constant for unit of mass: pound
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit POUND = MeasureUnit.internalGetInstance("mass", "pound");
|
||||
|
||||
/**
|
||||
* Constant for unit of power: horsepower
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit HORSEPOWER = MeasureUnit.internalGetInstance("power", "horsepower");
|
||||
|
||||
/**
|
||||
* Constant for unit of power: kilowatt
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit KILOWATT = MeasureUnit.internalGetInstance("power", "kilowatt");
|
||||
|
||||
/**
|
||||
* Constant for unit of power: watt
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit WATT = MeasureUnit.internalGetInstance("power", "watt");
|
||||
|
||||
/**
|
||||
* Constant for unit of pressure: hectopascal
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit HECTOPASCAL = MeasureUnit.internalGetInstance("pressure", "hectopascal");
|
||||
|
||||
/**
|
||||
* Constant for unit of pressure: inch-hg
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit INCH_HG = MeasureUnit.internalGetInstance("pressure", "inch-hg");
|
||||
|
||||
/**
|
||||
* Constant for unit of pressure: millibar
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit MILLIBAR = MeasureUnit.internalGetInstance("pressure", "millibar");
|
||||
|
||||
/**
|
||||
* Constant for unit of speed: kilometer-per-hour
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit KILOMETER_PER_HOUR = MeasureUnit.internalGetInstance("speed", "kilometer-per-hour");
|
||||
|
||||
/**
|
||||
* Constant for unit of speed: meter-per-second
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit METER_PER_SECOND = MeasureUnit.internalGetInstance("speed", "meter-per-second");
|
||||
|
||||
/**
|
||||
* Constant for unit of speed: mile-per-hour
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit MILE_PER_HOUR = MeasureUnit.internalGetInstance("speed", "mile-per-hour");
|
||||
|
||||
/**
|
||||
* Constant for unit of temperature: celsius
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit CELSIUS = MeasureUnit.internalGetInstance("temperature", "celsius");
|
||||
|
||||
/**
|
||||
* Constant for unit of temperature: fahrenheit
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit FAHRENHEIT = MeasureUnit.internalGetInstance("temperature", "fahrenheit");
|
||||
|
||||
/**
|
||||
* Constant for unit of volume: cubic-kilometer
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit CUBIC_KILOMETER = MeasureUnit.internalGetInstance("volume", "cubic-kilometer");
|
||||
|
||||
/**
|
||||
* Constant for unit of volume: cubic-mile
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit CUBIC_MILE = MeasureUnit.internalGetInstance("volume", "cubic-mile");
|
||||
|
||||
/**
|
||||
* Constant for unit of volume: liter
|
||||
* @draft ICU 53
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final MeasureUnit LITER = MeasureUnit.internalGetInstance("volume", "liter");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: year
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit YEAR = (TimeUnit) MeasureUnit.internalGetInstance("duration", "year");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: month
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit MONTH = (TimeUnit) MeasureUnit.internalGetInstance("duration", "month");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: week
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit WEEK = (TimeUnit) MeasureUnit.internalGetInstance("duration", "week");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: day
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit DAY = (TimeUnit) MeasureUnit.internalGetInstance("duration", "day");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: hour
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit HOUR = (TimeUnit) MeasureUnit.internalGetInstance("duration", "hour");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: minute
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit MINUTE = (TimeUnit) MeasureUnit.internalGetInstance("duration", "minute");
|
||||
|
||||
/**
|
||||
* Constant for unit of duration: second
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit SECOND = (TimeUnit) MeasureUnit.internalGetInstance("duration", "second");
|
||||
|
||||
/* Private */
|
||||
|
||||
private Object writeReplace() throws ObjectStreamException {
|
||||
return new MeasureUnitProxy(type, subType);
|
||||
|
Loading…
Reference in New Issue
Block a user