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 Long.formatUnsignedLong(long val, int shift, char[] buf, int offset, int len)
138 */
139 int formatUnsignedLong(long val, int shift, char[] buf, int offset, int len);
140
141 /**
142 * Invokes Integer.formatUnsignedInt(long val, int shift, char[] buf, int offset, int len)
143 */
144 int formatUnsignedInt(int val, int shift, char[] buf, int offset, int len);
145 }
|