115 /**
116 * Returns a new string backed by the provided character array. The
117 * character array is not copied and must never be modified after the
118 * String is created, in order to fulfill String's contract.
119 *
120 * @param chars the character array to back the string
121 * @return a newly created string whose content is the character array
122 */
123 String newStringUnsafe(char[] chars);
124
125 /**
126 * Returns a new Thread with the given Runnable and an
127 * inherited AccessControlContext.
128 */
129 Thread newThreadWithAcc(Runnable target, AccessControlContext acc);
130
131 /**
132 * Invokes the finalize method of the given object.
133 */
134 void invokeFinalize(Object o) throws Throwable;
135 }
|
115 /**
116 * Returns a new string backed by the provided character array. The
117 * character array is not copied and must never be modified after the
118 * String is created, in order to fulfill String's contract.
119 *
120 * @param chars the character array to back the string
121 * @return a newly created string whose content is the character array
122 */
123 String newStringUnsafe(char[] chars);
124
125 /**
126 * Returns a new Thread with the given Runnable and an
127 * inherited AccessControlContext.
128 */
129 Thread newThreadWithAcc(Runnable target, AccessControlContext acc);
130
131 /**
132 * Invokes the finalize method of the given object.
133 */
134 void invokeFinalize(Object o) throws Throwable;
135
136 /**
137 * Invokes Integer.parseInt(s, radix, start)
138 */
139 int parseInt(String s, int radix, int start);
140
141 /**
142 * Invokes Integer.parseInt(s, radix, start, end)
143 */
144 int parseInt(String s, int radix, int start, int end);
145
146 /**
147 * Invokes Integer.parseUnsignedInt(s, radix, start)
148 */
149 int parseUnsignedInt(String s, int radix, int start);
150
151 /**
152 * Invokes Integer.parseUnsignedInt(s, radix, start, end)
153 */
154 int parseUnsignedInt(String s, int radix, int start, int end);
155
156 /**
157 * Invokes Long.parseLong(s, radix, start)
158 */
159 long parseLong(String s, int radix, int start);
160
161 /**
162 * Invokes Long.parseLong(s, radix, start, end)
163 */
164 long parseLong(String s, int radix, int start, int end);
165
166 /**
167 * Invokes Long.parseUnsignedLong(s, radix, start)
168 */
169 long parseUnsignedLong(String s, int radix, int start);
170
171 /**
172 * Invokes Long.parseUnsignedLong(s, radix, start, end)
173 */
174 long parseUnsignedLong(String s, int radix, int start, int end);
175
176 /**
177 * Invokes Long.formatUnsignedLong(long val, int shift, char[] buf, int offset, int len)
178 */
179 int formatUnsignedLong(long val, int shift, char[] buf, int offset, int len);
180
181 /**
182 * Invokes Integer.formatUnsignedInt(long val, int shift, char[] buf, int offset, int len)
183 */
184 int formatUnsignedInt(int val, int shift, char[] buf, int offset, int len);
185 }
|