• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 /*
28  * (C) Copyright Taligent, Inc. 1996-1998 -  All Rights Reserved
29  * (C) Copyright IBM Corp. 1996-1998 - All Rights Reserved
30  *
31  *   The original version of this source code and documentation is copyrighted
32  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
33  * materials are provided under terms of a License Agreement between Taligent
34  * and Sun. This technology is protected by multiple US and International
35  * patents. This notice and attribution to Taligent may not be removed.
36  *   Taligent is a registered trademark of Taligent, Inc.
37  *
38  */
39 
40 package java.text;
41 
42 import dalvik.annotation.compat.UnsupportedAppUsage;
43 
44 @SuppressWarnings({"unchecked", "deprecation", "all"})
45 public abstract class Collator
46         implements java.util.Comparator<java.lang.Object>, java.lang.Cloneable {
47 
Collator()48     protected Collator() {
49         throw new RuntimeException("Stub!");
50     }
51 
Collator(android.icu.text.Collator icuColl)52     Collator(android.icu.text.Collator icuColl) {
53         throw new RuntimeException("Stub!");
54     }
55 
getInstance()56     public static synchronized java.text.Collator getInstance() {
57         throw new RuntimeException("Stub!");
58     }
59 
getInstance(java.util.Locale desiredLocale)60     public static synchronized java.text.Collator getInstance(java.util.Locale desiredLocale) {
61         throw new RuntimeException("Stub!");
62     }
63 
compare(java.lang.String source, java.lang.String target)64     public abstract int compare(java.lang.String source, java.lang.String target);
65 
compare(java.lang.Object o1, java.lang.Object o2)66     public int compare(java.lang.Object o1, java.lang.Object o2) {
67         throw new RuntimeException("Stub!");
68     }
69 
getCollationKey(java.lang.String source)70     public abstract java.text.CollationKey getCollationKey(java.lang.String source);
71 
equals(java.lang.String source, java.lang.String target)72     public boolean equals(java.lang.String source, java.lang.String target) {
73         throw new RuntimeException("Stub!");
74     }
75 
getStrength()76     public synchronized int getStrength() {
77         throw new RuntimeException("Stub!");
78     }
79 
setStrength(int newStrength)80     public synchronized void setStrength(int newStrength) {
81         throw new RuntimeException("Stub!");
82     }
83 
getDecomposition()84     public synchronized int getDecomposition() {
85         throw new RuntimeException("Stub!");
86     }
87 
setDecomposition(int decompositionMode)88     public synchronized void setDecomposition(int decompositionMode) {
89         throw new RuntimeException("Stub!");
90     }
91 
getAvailableLocales()92     public static synchronized java.util.Locale[] getAvailableLocales() {
93         throw new RuntimeException("Stub!");
94     }
95 
decompositionMode_Java_ICU(int mode)96     private int decompositionMode_Java_ICU(int mode) {
97         throw new RuntimeException("Stub!");
98     }
99 
decompositionMode_ICU_Java(int mode)100     private int decompositionMode_ICU_Java(int mode) {
101         throw new RuntimeException("Stub!");
102     }
103 
clone()104     public java.lang.Object clone() {
105         throw new RuntimeException("Stub!");
106     }
107 
equals(java.lang.Object that)108     public boolean equals(java.lang.Object that) {
109         throw new RuntimeException("Stub!");
110     }
111 
hashCode()112     public abstract int hashCode();
113 
114     public static final int CANONICAL_DECOMPOSITION = 1; // 0x1
115 
116     public static final int FULL_DECOMPOSITION = 2; // 0x2
117 
118     public static final int IDENTICAL = 3; // 0x3
119 
120     public static final int NO_DECOMPOSITION = 0; // 0x0
121 
122     public static final int PRIMARY = 0; // 0x0
123 
124     public static final int SECONDARY = 1; // 0x1
125 
126     public static final int TERTIARY = 2; // 0x2
127 
128     @UnsupportedAppUsage
129     android.icu.text.Collator icuColl;
130 }
131