LEFT | RIGHT |
(no file at all) | |
1 // © 2016 and later: Unicode, Inc. and others. | 1 // © 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html#License | 2 // License & terms of use: http://www.unicode.org/copyright.html#License |
3 /* | 3 /* |
4 ******************************************************************************* | 4 ******************************************************************************* |
5 * Copyright (C) 2004-2016, Google Inc, International Business Machines | 5 * Copyright (C) 2004-2016, Google Inc, International Business Machines |
6 * Corporation and others. All Rights Reserved. | 6 * Corporation and others. All Rights Reserved. |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 */ | 8 */ |
9 package com.ibm.icu.util; | 9 package com.ibm.icu.util; |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 for (MeasureUnit unit : MeasureUnit.getAvailable(type)) { | 164 for (MeasureUnit unit : MeasureUnit.getAvailable(type)) { |
165 result.add(unit); | 165 result.add(unit); |
166 } | 166 } |
167 } | 167 } |
168 // Train users not to modify returned set from the start giving us more | 168 // Train users not to modify returned set from the start giving us more |
169 // flexibility for implementation. | 169 // flexibility for implementation. |
170 return Collections.unmodifiableSet(result); | 170 return Collections.unmodifiableSet(result); |
171 } | 171 } |
172 | 172 |
173 /** | 173 /** |
174 * Create a MeasureUnit instance (creates a singleton instance). | 174 * Creates a MeasureUnit instance (creates a singleton instance) or returns
one from the cache. |
175 * <p> | 175 * <p> |
176 * Normally this method should not be used, since there will be no formattin
g data | 176 * Normally this method should not be used, since there will be no formattin
g data |
177 * available for it, and it may not be returned by getAvailable(). | 177 * available for it, and it may not be returned by getAvailable(). |
178 * However, for special purposes (such as CLDR tooling), it is available. | 178 * However, for special purposes (such as CLDR tooling), it is available. |
179 * | 179 * |
180 * @internal | 180 * @internal |
181 * @deprecated This API is ICU internal only. | 181 * @deprecated This API is ICU internal only. |
182 */ | 182 */ |
183 @Deprecated | 183 @Deprecated |
184 public static MeasureUnit internalGetInstance(String type, String subType) { | 184 public static MeasureUnit internalGetInstance(String type, String subType) { |
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 byte[] extraBytes = new byte[extra]; | 1245 byte[] extraBytes = new byte[extra]; |
1246 in.read(extraBytes, 0, extra); | 1246 in.read(extraBytes, 0, extra); |
1247 } | 1247 } |
1248 } | 1248 } |
1249 | 1249 |
1250 private Object readResolve() throws ObjectStreamException { | 1250 private Object readResolve() throws ObjectStreamException { |
1251 return MeasureUnit.internalGetInstance(type, subType); | 1251 return MeasureUnit.internalGetInstance(type, subType); |
1252 } | 1252 } |
1253 } | 1253 } |
1254 } | 1254 } |
LEFT | RIGHT |