M7350/base/docs/html/sdk/api_diff/9/changes/java.util.Arrays.html

319 lines
16 KiB
HTML
Raw Normal View History

2024-09-09 08:52:07 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML style="overflow:auto;">
<HEAD>
<meta name="generator" content="JDiff v1.1.0">
<!-- Generated by the JDiff Javadoc doclet -->
<!-- (http://www.jdiff.org) -->
<meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.">
<meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet">
<TITLE>
java.util.Arrays
</TITLE>
<link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
<link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" />
<noscript>
<style type="text/css">
body{overflow:auto;}
#body-content{position:relative; top:0;}
#doc-content{overflow:visible;border-left:3px solid #666;}
#side-nav{padding:0;}
#side-nav .toggle-list ul {display:block;}
#resize-packages-nav{border-bottom:3px solid #666;}
</style>
</noscript>
<style type="text/css">
</style>
</HEAD>
<BODY>
<!-- Start of nav bar -->
<a name="top"></a>
<div id="header" style="margin-bottom:0;padding-bottom:0;">
<div id="headerLeft">
<a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a>
</div>
<div id="headerRight">
<div id="headerLinks">
<!-- <img src="/assets/images/icon_world.jpg" alt="" /> -->
<span class="text">
<!-- &nbsp;<a href="#">English</a> | -->
<nobr><a href="http://developer.android.com" target="_top">Android Developers</a> | <a href="http://www.android.com" target="_top">Android.com</a></nobr>
</span>
</div>
<div class="and-diff-id" style="margin-top:6px;margin-right:8px;">
<table class="diffspectable">
<tr>
<td colspan="2" class="diffspechead">API Diff Specification</td>
</tr>
<tr>
<td class="diffspec" style="padding-top:.25em">To Level:</td>
<td class="diffvaluenew" style="padding-top:.25em">9</td>
</tr>
<tr>
<td class="diffspec">From Level:</td>
<td class="diffvalueold">8</td>
</tr>
<tr>
<td class="diffspec">Generated</td>
<td class="diffvalue">2010.11.19 19:12</td>
</tr>
</table>
</div><!-- End and-diff-id -->
<div class="and-diff-id" style="margin-right:8px;">
<table class="diffspectable">
<tr>
<td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a>
</tr>
</table>
</div> <!-- End and-diff-id -->
</div> <!-- End headerRight -->
</div> <!-- End header -->
<div id="body-content" xstyle="padding:12px;padding-right:18px;">
<div id="doc-content" style="position:relative;">
<div id="mainBodyFluid">
<H2>
Class java.util.<A HREF="../../../../reference/java/util/Arrays.html" target="_top"><font size="+2"><code>Arrays</code></font></A>
</H2>
<a NAME="constructors"></a>
<a NAME="methods"></a>
<p>
<a NAME="Added"></a>
<TABLE summary="Added Methods" WIDTH="100%">
<TR>
<TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD>
</TH>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(T[], int, int, T, java.util.Comparator<? super T>)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(T[], int, int, T, java.util.Comparator<? super T>)" target="_top"><code>binarySearch</code></A>(<code>T[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> T<nobr>,</nobr> Comparator&lt;?<nobr>,</nobr> super<nobr>,</nobr> T&gt;<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(byte[], int, int, byte)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(byte[], int, int, byte)" target="_top"><code>binarySearch</code></A>(<code>byte[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> byte<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(char[], int, int, char)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(char[], int, int, char)" target="_top"><code>binarySearch</code></A>(<code>char[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> char<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(double[], int, int, double)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(double[], int, int, double)" target="_top"><code>binarySearch</code></A>(<code>double[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> double<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(float[], int, int, float)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(float[], int, int, float)" target="_top"><code>binarySearch</code></A>(<code>float[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> float<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(int[], int, int, int)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(int[], int, int, int)" target="_top"><code>binarySearch</code></A>(<code>int[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(java.lang.Object[], int, int, java.lang.Object)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(java.lang.Object[], int, int, java.lang.Object)" target="_top"><code>binarySearch</code></A>(<code>Object[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> Object<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(long[], int, int, long)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(long[], int, int, long)" target="_top"><code>binarySearch</code></A>(<code>long[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> long<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.binarySearch_added(short[], int, int, short)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#binarySearch(short[], int, int, short)" target="_top"><code>binarySearch</code></A>(<code>short[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> short<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(T[], int)"></A>
<nobr><code>T[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(T[], int)" target="_top"><code>copyOf</code></A>(<code>T[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(U[], int, java.lang.Class<? extends T[]>)"></A>
<nobr><code>T[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(U[], int, java.lang.Class<? extends T[]>)" target="_top"><code>copyOf</code></A>(<code>U[],</nobr> int<nobr>,</nobr> Class&lt;?<nobr>,</nobr> extends<nobr>,</nobr> T[]&gt;<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(boolean[], int)"></A>
<nobr><code>boolean[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(boolean[], int)" target="_top"><code>copyOf</code></A>(<code>boolean[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(byte[], int)"></A>
<nobr><code>byte[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(byte[], int)" target="_top"><code>copyOf</code></A>(<code>byte[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(char[], int)"></A>
<nobr><code>char[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(char[], int)" target="_top"><code>copyOf</code></A>(<code>char[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(double[], int)"></A>
<nobr><code>double[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(double[], int)" target="_top"><code>copyOf</code></A>(<code>double[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(float[], int)"></A>
<nobr><code>float[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(float[], int)" target="_top"><code>copyOf</code></A>(<code>float[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(int[], int)"></A>
<nobr><code>int[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(int[], int)" target="_top"><code>copyOf</code></A>(<code>int[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(long[], int)"></A>
<nobr><code>long[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(long[], int)" target="_top"><code>copyOf</code></A>(<code>long[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOf_added(short[], int)"></A>
<nobr><code>short[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOf(short[], int)" target="_top"><code>copyOf</code></A>(<code>short[],</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(T[], int, int)"></A>
<nobr><code>T[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(T[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>T[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(U[], int, int, java.lang.Class<? extends T[]>)"></A>
<nobr><code>T[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(U[], int, int, java.lang.Class<? extends T[]>)" target="_top"><code>copyOfRange</code></A>(<code>U[],</nobr> int<nobr>,</nobr> int<nobr>,</nobr> Class&lt;?<nobr>,</nobr> extends<nobr>,</nobr> T[]&gt;<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(boolean[], int, int)"></A>
<nobr><code>boolean[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(boolean[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>boolean[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(byte[], int, int)"></A>
<nobr><code>byte[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(byte[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>byte[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(char[], int, int)"></A>
<nobr><code>char[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(char[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>char[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(double[], int, int)"></A>
<nobr><code>double[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(double[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>double[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(float[], int, int)"></A>
<nobr><code>float[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(float[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>float[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(int[], int, int)"></A>
<nobr><code>int[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(int[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>int[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(long[], int, int)"></A>
<nobr><code>long[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(long[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>long[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="java.util.Arrays.copyOfRange_added(short[], int, int)"></A>
<nobr><code>short[]</code>&nbsp;<A HREF="../../../../reference/java/util/Arrays.html#copyOfRange(short[], int, int)" target="_top"><code>copyOfRange</code></A>(<code>short[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<a NAME="fields"></a>
</div>
<div id="footer">
<div id="copyright">
Except as noted, this content is licensed under
<a href="http://creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>.
For details and restrictions, see the <a href="/license.html">Content License</a>.
</div>
<div id="footerlinks">
<p>
<a href="http://www.android.com/terms.html">Site Terms of Service</a> -
<a href="http://www.android.com/privacy.html">Privacy Policy</a> -
<a href="http://www.android.com/branding.html">Brand Guidelines</a>
</p>
</div>
</div> <!-- end footer -->
</div><!-- end doc-content -->
</div> <!-- end body-content -->
<script src="http://www.google-analytics.com/ga.js" type="text/javascript">
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-5831155-1");
pageTracker._setAllowAnchor(true);
pageTracker._initData();
pageTracker._trackPageview();
} catch(e) {}
</script>
</BODY>
</HTML>