Returns a set containing this charset's aliases. @return An immutable set of this charset's aliases
()
| 661 | * @return An immutable set of this charset's aliases |
| 662 | */ |
| 663 | public final Set<String> aliases() { |
| 664 | if (aliasSet != null) |
| 665 | return aliasSet; |
| 666 | int n = aliases.length; |
| 667 | HashSet<String> hs = new HashSet<String>(n); |
| 668 | for (int i = 0; i < n; i++) |
| 669 | hs.add(aliases[i]); |
| 670 | aliasSet = Collections.unmodifiableSet(hs); |
| 671 | return aliasSet; |
| 672 | } |
| 673 | |
| 674 | /** |
| 675 | * Returns this charset's human-readable name for the default locale. |