blob: a8cf1def67f6971ebf2faa22b42f9df3e1518a25 [file] [log] [blame]
Pete Gillin79f14682018-08-17 13:45:02 +01001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 1994, 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
28package java.lang;
29
30import java.nio.charset.Charset;
31import java.io.UnsupportedEncodingException;
32import java.util.regex.Pattern;
33import java.util.regex.PatternSyntaxException;
34import java.util.StringJoiner;
35import java.util.Locale;
36import java.util.Formatter;
37import java.util.Comparator;
38
39@SuppressWarnings({"unchecked", "deprecation", "all"})
40public final class String implements java.io.Serializable, java.lang.Comparable<java.lang.String>, java.lang.CharSequence {
41
42public String() { throw new RuntimeException("Stub!"); }
43
44public String(@libcore.util.NonNull java.lang.String original) { throw new RuntimeException("Stub!"); }
45
46public String(char[] value) { throw new RuntimeException("Stub!"); }
47
48public String(char[] value, int offset, int count) { throw new RuntimeException("Stub!"); }
49
50public String(int[] codePoints, int offset, int count) { throw new RuntimeException("Stub!"); }
51
52@Deprecated public String(byte[] ascii, int hibyte, int offset, int count) { throw new RuntimeException("Stub!"); }
53
54@Deprecated public String(byte[] ascii, int hibyte) { throw new RuntimeException("Stub!"); }
55
56public String(byte[] bytes, int offset, int length, @libcore.util.NonNull java.lang.String charsetName) throws java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
57
58public String(byte[] bytes, int offset, int length, @libcore.util.NonNull java.nio.charset.Charset charset) { throw new RuntimeException("Stub!"); }
59
60public String(byte[] bytes, @libcore.util.NonNull java.lang.String charsetName) throws java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
61
62public String(byte[] bytes, @libcore.util.NonNull java.nio.charset.Charset charset) { throw new RuntimeException("Stub!"); }
63
64public String(byte[] bytes, int offset, int length) { throw new RuntimeException("Stub!"); }
65
66public String(byte[] bytes) { throw new RuntimeException("Stub!"); }
67
68public String(@libcore.util.NonNull java.lang.StringBuffer buffer) { throw new RuntimeException("Stub!"); }
69
70public String(@libcore.util.NonNull java.lang.StringBuilder builder) { throw new RuntimeException("Stub!"); }
71
72public int length() { throw new RuntimeException("Stub!"); }
73
74public boolean isEmpty() { throw new RuntimeException("Stub!"); }
75
76public native char charAt(int index);
77
78public int codePointAt(int index) { throw new RuntimeException("Stub!"); }
79
80public int codePointBefore(int index) { throw new RuntimeException("Stub!"); }
81
82public int codePointCount(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); }
83
84public int offsetByCodePoints(int index, int codePointOffset) { throw new RuntimeException("Stub!"); }
85
86public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { throw new RuntimeException("Stub!"); }
87
88@Deprecated public void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) { throw new RuntimeException("Stub!"); }
89
90public byte[] getBytes(@libcore.util.NonNull java.lang.String charsetName) throws java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); }
91
92public byte[] getBytes(@libcore.util.NonNull java.nio.charset.Charset charset) { throw new RuntimeException("Stub!"); }
93
94public byte[] getBytes() { throw new RuntimeException("Stub!"); }
95
96public boolean equals(@libcore.util.Nullable java.lang.Object anObject) { throw new RuntimeException("Stub!"); }
97
98public boolean contentEquals(@libcore.util.NonNull java.lang.StringBuffer sb) { throw new RuntimeException("Stub!"); }
99
100public boolean contentEquals(@libcore.util.NonNull java.lang.CharSequence cs) { throw new RuntimeException("Stub!"); }
101
102public boolean equalsIgnoreCase(@libcore.util.Nullable java.lang.String anotherString) { throw new RuntimeException("Stub!"); }
103
104public native int compareTo(@libcore.util.NonNull java.lang.String anotherString);
105
106public int compareToIgnoreCase(@libcore.util.NonNull java.lang.String str) { throw new RuntimeException("Stub!"); }
107
108public boolean regionMatches(int toffset, @libcore.util.NonNull java.lang.String other, int ooffset, int len) { throw new RuntimeException("Stub!"); }
109
110public boolean regionMatches(boolean ignoreCase, int toffset, @libcore.util.NonNull java.lang.String other, int ooffset, int len) { throw new RuntimeException("Stub!"); }
111
112public boolean startsWith(@libcore.util.NonNull java.lang.String prefix, int toffset) { throw new RuntimeException("Stub!"); }
113
114public boolean startsWith(@libcore.util.NonNull java.lang.String prefix) { throw new RuntimeException("Stub!"); }
115
116public boolean endsWith(@libcore.util.NonNull java.lang.String suffix) { throw new RuntimeException("Stub!"); }
117
118public int hashCode() { throw new RuntimeException("Stub!"); }
119
120public int indexOf(int ch) { throw new RuntimeException("Stub!"); }
121
122public int indexOf(int ch, int fromIndex) { throw new RuntimeException("Stub!"); }
123
124public int lastIndexOf(int ch) { throw new RuntimeException("Stub!"); }
125
126public int lastIndexOf(int ch, int fromIndex) { throw new RuntimeException("Stub!"); }
127
128public int indexOf(@libcore.util.NonNull java.lang.String str) { throw new RuntimeException("Stub!"); }
129
130public int indexOf(@libcore.util.NonNull java.lang.String str, int fromIndex) { throw new RuntimeException("Stub!"); }
131
132public int lastIndexOf(@libcore.util.NonNull java.lang.String str) { throw new RuntimeException("Stub!"); }
133
134public int lastIndexOf(@libcore.util.NonNull java.lang.String str, int fromIndex) { throw new RuntimeException("Stub!"); }
135
136@libcore.util.NonNull public java.lang.String substring(int beginIndex) { throw new RuntimeException("Stub!"); }
137
138@libcore.util.NonNull public java.lang.String substring(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); }
139
140@libcore.util.NonNull public java.lang.CharSequence subSequence(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); }
141
142@libcore.util.NonNull public native java.lang.String concat(@libcore.util.NonNull java.lang.String str);
143
144@libcore.util.NonNull public java.lang.String replace(char oldChar, char newChar) { throw new RuntimeException("Stub!"); }
145
146public boolean matches(@libcore.util.NonNull java.lang.String regex) { throw new RuntimeException("Stub!"); }
147
148public boolean contains(@libcore.util.NonNull java.lang.CharSequence s) { throw new RuntimeException("Stub!"); }
149
150@libcore.util.NonNull public java.lang.String replaceFirst(@libcore.util.NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement) { throw new RuntimeException("Stub!"); }
151
152@libcore.util.NonNull public java.lang.String replaceAll(@libcore.util.NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement) { throw new RuntimeException("Stub!"); }
153
154@libcore.util.NonNull public java.lang.String replace(@libcore.util.NonNull java.lang.CharSequence target, @libcore.util.NonNull java.lang.CharSequence replacement) { throw new RuntimeException("Stub!"); }
155
Pete Gillind7d22172018-08-28 17:07:00 +0100156public java.lang.@libcore.util.NonNull String @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.String regex, int limit) { throw new RuntimeException("Stub!"); }
Pete Gillin79f14682018-08-17 13:45:02 +0100157
Pete Gillind7d22172018-08-28 17:07:00 +0100158public java.lang.@libcore.util.NonNull String @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.String regex) { throw new RuntimeException("Stub!"); }
Pete Gillin79f14682018-08-17 13:45:02 +0100159
Pete Gillind7d22172018-08-28 17:07:00 +0100160@libcore.util.NonNull public static java.lang.String join(@libcore.util.NonNull java.lang.CharSequence delimiter, java.lang.@libcore.util.NonNull CharSequence @libcore.util.Nullable ... elements) { throw new RuntimeException("Stub!"); }
Pete Gillin79f14682018-08-17 13:45:02 +0100161
Pete Gillind7d22172018-08-28 17:07:00 +0100162@libcore.util.NonNull public static java.lang.String join(@libcore.util.NonNull java.lang.CharSequence delimiter, @libcore.util.NonNull java.lang.Iterable<? extends @libcore.util.Nullable java.lang.CharSequence> elements) { throw new RuntimeException("Stub!"); }
Pete Gillin79f14682018-08-17 13:45:02 +0100163
164@libcore.util.NonNull public java.lang.String toLowerCase(@libcore.util.NonNull java.util.Locale locale) { throw new RuntimeException("Stub!"); }
165
166@libcore.util.NonNull public java.lang.String toLowerCase() { throw new RuntimeException("Stub!"); }
167
168@libcore.util.NonNull public java.lang.String toUpperCase(@libcore.util.NonNull java.util.Locale locale) { throw new RuntimeException("Stub!"); }
169
170@libcore.util.NonNull public java.lang.String toUpperCase() { throw new RuntimeException("Stub!"); }
171
172@libcore.util.NonNull public java.lang.String trim() { throw new RuntimeException("Stub!"); }
173
174@libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
175
176public native char[] toCharArray();
177
Pete Gillind7d22172018-08-28 17:07:00 +0100178@libcore.util.NonNull public static java.lang.String format(@libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
Pete Gillin79f14682018-08-17 13:45:02 +0100179
Pete Gillind7d22172018-08-28 17:07:00 +0100180@libcore.util.NonNull public static java.lang.String format(@libcore.util.NonNull java.util.Locale l, @libcore.util.NonNull java.lang.String format, java.lang.@libcore.util.Nullable Object @libcore.util.NonNull ... args) { throw new RuntimeException("Stub!"); }
Pete Gillin79f14682018-08-17 13:45:02 +0100181
182@libcore.util.NonNull public static java.lang.String valueOf(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
183
184@libcore.util.NonNull public static java.lang.String valueOf(char[] data) { throw new RuntimeException("Stub!"); }
185
186@libcore.util.NonNull public static java.lang.String valueOf(char[] data, int offset, int count) { throw new RuntimeException("Stub!"); }
187
188@libcore.util.NonNull public static java.lang.String copyValueOf(char[] data, int offset, int count) { throw new RuntimeException("Stub!"); }
189
190@libcore.util.NonNull public static java.lang.String copyValueOf(char[] data) { throw new RuntimeException("Stub!"); }
191
192@libcore.util.NonNull public static java.lang.String valueOf(boolean b) { throw new RuntimeException("Stub!"); }
193
194@libcore.util.NonNull public static java.lang.String valueOf(char c) { throw new RuntimeException("Stub!"); }
195
196@libcore.util.NonNull public static java.lang.String valueOf(int i) { throw new RuntimeException("Stub!"); }
197
198@libcore.util.NonNull public static java.lang.String valueOf(long l) { throw new RuntimeException("Stub!"); }
199
200@libcore.util.NonNull public static java.lang.String valueOf(float f) { throw new RuntimeException("Stub!"); }
201
202@libcore.util.NonNull public static java.lang.String valueOf(double d) { throw new RuntimeException("Stub!"); }
203
204@libcore.util.NonNull public native java.lang.String intern();
205
206public static final java.util.Comparator<java.lang.String> CASE_INSENSITIVE_ORDER;
207static { CASE_INSENSITIVE_ORDER = null; }
208}