]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/impl/locale/Extension.java
Added flags.
[Dictionary.git] / jars / icu4j-52_1 / main / classes / core / src / com / ibm / icu / impl / locale / Extension.java
1 /*
2  *******************************************************************************
3  * Copyright (C) 2009-2010, International Business Machines Corporation and    *
4  * others. All Rights Reserved.                                                *
5  *******************************************************************************
6  */
7 package com.ibm.icu.impl.locale;
8
9
10 public class Extension {
11     private char _key;
12     protected String _value;
13
14     protected Extension(char key) {
15         _key = key;
16     }
17
18     Extension(char key, String value) {
19         _key = key;
20         _value = value;
21     }
22
23     public char getKey() {
24         return _key;
25     }
26
27     public String getValue() {
28         return _value;
29     }
30
31     public String getID() {
32         return _key + LanguageTag.SEP + _value;
33     }
34
35     public String toString() {
36         return getID();
37     }
38 }