equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
44 */ |
44 */ |
45 protected CollatorProvider() { |
45 protected CollatorProvider() { |
46 } |
46 } |
47 |
47 |
48 /** |
48 /** |
49 * Returns a new <code>Collator</code> instance for the specified locale. |
49 * Returns a new {@code Collator} instance for the specified locale. |
50 * @param locale the desired locale. |
50 * @param locale the desired locale. |
51 * @return the <code>Collator</code> for the desired locale. |
51 * @return the {@code Collator} for the desired locale. |
52 * @exception NullPointerException if |
52 * @throws NullPointerException if |
53 * <code>locale</code> is null |
53 * {@code locale} is null |
54 * @exception IllegalArgumentException if <code>locale</code> isn't |
54 * @throws IllegalArgumentException if {@code locale} isn't |
55 * one of the locales returned from |
55 * one of the locales returned from |
56 * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() |
56 * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() |
57 * getAvailableLocales()}. |
57 * getAvailableLocales()}. |
58 * @see java.text.Collator#getInstance(java.util.Locale) |
58 * @see java.text.Collator#getInstance(java.util.Locale) |
59 */ |
59 */ |