src/share/classes/sun/misc/JavaLangAccess.java

Print this page
rev 9925 : 8041972: Add improved parse/format methods for Long/Integer
Contributed-by: redestad

*** 130,135 **** --- 130,185 ---- /** * Invokes the finalize method of the given object. */ void invokeFinalize(Object o) throws Throwable; + + /** + * Invokes Integer.parseInt(s, radix, start) + */ + int parseInt(String s, int radix, int start); + + /** + * Invokes Integer.parseInt(s, radix, start, end) + */ + int parseInt(String s, int radix, int start, int end); + + /** + * Invokes Integer.parseUnsignedInt(s, radix, start) + */ + int parseUnsignedInt(String s, int radix, int start); + + /** + * Invokes Integer.parseUnsignedInt(s, radix, start, end) + */ + int parseUnsignedInt(String s, int radix, int start, int end); + + /** + * Invokes Long.parseLong(s, radix, start) + */ + long parseLong(String s, int radix, int start); + + /** + * Invokes Long.parseLong(s, radix, start, end) + */ + long parseLong(String s, int radix, int start, int end); + + /** + * Invokes Long.parseUnsignedLong(s, radix, start) + */ + long parseUnsignedLong(String s, int radix, int start); + + /** + * Invokes Long.parseUnsignedLong(s, radix, start, end) + */ + long parseUnsignedLong(String s, int radix, int start, int end); + + /** + * Invokes Long.formatUnsignedLong(long val, int shift, char[] buf, int offset, int len) + */ + int formatUnsignedLong(long val, int shift, char[] buf, int offset, int len); + + /** + * Invokes Integer.formatUnsignedInt(long val, int shift, char[] buf, int offset, int len) + */ + int formatUnsignedInt(int val, int shift, char[] buf, int offset, int len); }