| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>ArrayUtil</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ArrayUtil"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.iceberg.util</a></div> |
| <h2 title="Class ArrayUtil" class="title">Class ArrayUtil</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.iceberg.util.ArrayUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <pre>public class <span class="typeNameLabel">ArrayUtil</span> |
| extends java.lang.Object</pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Field</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static boolean[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY_BOOLEAN_ARRAY">EMPTY_BOOLEAN_ARRAY</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static byte[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY_BYTE_ARRAY">EMPTY_BYTE_ARRAY</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static double[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY_DOUBLE_ARRAY">EMPTY_DOUBLE_ARRAY</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static float[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY_FLOAT_ARRAY">EMPTY_FLOAT_ARRAY</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY_INT_ARRAY">EMPTY_INT_ARRAY</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static long[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY_LONG_ARRAY">EMPTY_LONG_ARRAY</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static short[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY_SHORT_ARRAY">EMPTY_SHORT_ARRAY</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static <T> T[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(T%5B%5D,T)">add</a></span>​(T[] array, |
| T element)</code></th> |
| <td class="colLast"> |
| <div class="block">Copies the given array and adds the given element at the end of the new array.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static int[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toIntArray(java.util.List)">toIntArray</a></span>​(java.util.List<java.lang.Integer> ints)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static java.util.List<java.lang.Integer></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toIntList(int%5B%5D)">toIntList</a></span>​(int[] ints)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static long[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toLongArray(java.util.List)">toLongArray</a></span>​(java.util.List<java.lang.Long> longs)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static java.util.List<java.lang.Long></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toLongList(long%5B%5D)">toLongList</a></span>​(long[] longs)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static boolean[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPrimitive(java.lang.Boolean%5B%5D)">toPrimitive</a></span>​(java.lang.Boolean[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts an array of object Booleans to primitives.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static byte[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPrimitive(java.lang.Byte%5B%5D)">toPrimitive</a></span>​(java.lang.Byte[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts an array of object Bytes to primitives.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static double[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPrimitive(java.lang.Double%5B%5D)">toPrimitive</a></span>​(java.lang.Double[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts an array of object Doubles to primitives.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static float[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPrimitive(java.lang.Float%5B%5D)">toPrimitive</a></span>​(java.lang.Float[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts an array of object Floats to primitives.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static int[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPrimitive(java.lang.Integer%5B%5D)">toPrimitive</a></span>​(java.lang.Integer[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts an array of object Integers to primitives.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static long[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPrimitive(java.lang.Long%5B%5D)">toPrimitive</a></span>​(java.lang.Long[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts an array of object Longs to primitives.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static short[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toPrimitive(java.lang.Short%5B%5D)">toPrimitive</a></span>​(java.lang.Short[] array)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts an array of object Shorts to primitives.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a id="EMPTY_BOOLEAN_ARRAY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EMPTY_BOOLEAN_ARRAY</h4> |
| <pre>public static final boolean[] EMPTY_BOOLEAN_ARRAY</pre> |
| </li> |
| </ul> |
| <a id="EMPTY_BYTE_ARRAY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EMPTY_BYTE_ARRAY</h4> |
| <pre>public static final byte[] EMPTY_BYTE_ARRAY</pre> |
| </li> |
| </ul> |
| <a id="EMPTY_SHORT_ARRAY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EMPTY_SHORT_ARRAY</h4> |
| <pre>public static final short[] EMPTY_SHORT_ARRAY</pre> |
| </li> |
| </ul> |
| <a id="EMPTY_INT_ARRAY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EMPTY_INT_ARRAY</h4> |
| <pre>public static final int[] EMPTY_INT_ARRAY</pre> |
| </li> |
| </ul> |
| <a id="EMPTY_LONG_ARRAY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EMPTY_LONG_ARRAY</h4> |
| <pre>public static final long[] EMPTY_LONG_ARRAY</pre> |
| </li> |
| </ul> |
| <a id="EMPTY_FLOAT_ARRAY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EMPTY_FLOAT_ARRAY</h4> |
| <pre>public static final float[] EMPTY_FLOAT_ARRAY</pre> |
| </li> |
| </ul> |
| <a id="EMPTY_DOUBLE_ARRAY"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>EMPTY_DOUBLE_ARRAY</h4> |
| <pre>public static final double[] EMPTY_DOUBLE_ARRAY</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="toIntList(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toIntList</h4> |
| <pre class="methodSignature">public static java.util.List<java.lang.Integer> toIntList​(int[] ints)</pre> |
| </li> |
| </ul> |
| <a id="toIntArray(java.util.List)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toIntArray</h4> |
| <pre class="methodSignature">public static int[] toIntArray​(java.util.List<java.lang.Integer> ints)</pre> |
| </li> |
| </ul> |
| <a id="toLongList(long[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toLongList</h4> |
| <pre class="methodSignature">public static java.util.List<java.lang.Long> toLongList​(long[] longs)</pre> |
| </li> |
| </ul> |
| <a id="toLongArray(java.util.List)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toLongArray</h4> |
| <pre class="methodSignature">public static long[] toLongArray​(java.util.List<java.lang.Long> longs)</pre> |
| </li> |
| </ul> |
| <a id="toPrimitive(java.lang.Boolean[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPrimitive</h4> |
| <pre class="methodSignature">public static boolean[] toPrimitive​(java.lang.Boolean[] array)</pre> |
| <div class="block">Converts an array of object Booleans to primitives. |
| <p> |
| This method returns <code>null</code> for a <code>null</code> input array. |
| <p> |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - a <code>Boolean</code> array, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a <code>boolean</code> array, <code>null</code> if null array input</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if array content is <code>null</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toPrimitive(java.lang.Byte[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPrimitive</h4> |
| <pre class="methodSignature">public static byte[] toPrimitive​(java.lang.Byte[] array)</pre> |
| <div class="block">Converts an array of object Bytes to primitives. |
| <p> |
| This method returns <code>null</code> for a <code>null</code> input array. |
| <p> |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - a <code>Byte</code> array, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a <code>byte</code> array, <code>null</code> if null array input</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if array content is <code>null</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toPrimitive(java.lang.Short[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPrimitive</h4> |
| <pre class="methodSignature">public static short[] toPrimitive​(java.lang.Short[] array)</pre> |
| <div class="block">Converts an array of object Shorts to primitives. |
| <p> |
| This method returns <code>null</code> for a <code>null</code> input array. |
| <p> |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - a <code>Short</code> array, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a <code>byte</code> array, <code>null</code> if null array input</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if array content is <code>null</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toPrimitive(java.lang.Integer[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPrimitive</h4> |
| <pre class="methodSignature">public static int[] toPrimitive​(java.lang.Integer[] array)</pre> |
| <div class="block">Converts an array of object Integers to primitives. |
| <p> |
| This method returns <code>null</code> for a <code>null</code> input array. |
| <p> |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - a <code>Integer</code> array, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an <code>int</code> array, <code>null</code> if null array input</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if array content is <code>null</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toPrimitive(java.lang.Long[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPrimitive</h4> |
| <pre class="methodSignature">public static long[] toPrimitive​(java.lang.Long[] array)</pre> |
| <div class="block">Converts an array of object Longs to primitives. |
| <p> |
| This method returns <code>null</code> for a <code>null</code> input array. |
| <p> |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - a <code>Long</code> array, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a <code>long</code> array, <code>null</code> if null array input</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if array content is <code>null</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toPrimitive(java.lang.Float[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPrimitive</h4> |
| <pre class="methodSignature">public static float[] toPrimitive​(java.lang.Float[] array)</pre> |
| <div class="block">Converts an array of object Floats to primitives. |
| <p> |
| This method returns <code>null</code> for a <code>null</code> input array. |
| <p> |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - a <code>Float</code> array, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a <code>float</code> array, <code>null</code> if null array input</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if array content is <code>null</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toPrimitive(java.lang.Double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toPrimitive</h4> |
| <pre class="methodSignature">public static double[] toPrimitive​(java.lang.Double[] array)</pre> |
| <div class="block">Converts an array of object Doubles to primitives. |
| <p> |
| This method returns <code>null</code> for a <code>null</code> input array. |
| <p> |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - a <code>Double</code> array, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a <code>double</code> array, <code>null</code> if null array input</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if array content is <code>null</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="add(java.lang.Object[],java.lang.Object)"> |
| <!-- --> |
| </a><a id="add(T[],T)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre class="methodSignature">public static <T> T[] add​(T[] array, |
| T element)</pre> |
| <div class="block">Copies the given array and adds the given element at the end of the new array. |
| <p> |
| The new array contains the same elements of the input |
| array plus the given element in the last position. The component type of |
| the new array is the same as that of the input array. |
| <p> |
| If the input array is <code>null</code>, a new one element array is returned |
| whose component type is the same as the element, unless the element itself is null, |
| in which case the return type is Object[] |
| |
| <pre> |
| ArrayUtils.add(null, null) = IllegalArgumentException |
| ArrayUtils.add(null, "a") = ["a"] |
| ArrayUtils.add(["a"], null) = ["a", null] |
| ArrayUtils.add(["a"], "b") = ["a", "b"] |
| ArrayUtils.add(["a", "b"], "c") = ["a", "b", "c"] |
| </pre> |
| |
| This code is borrowed from `org.apache.commons:commons-lang3`.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - the component type of the array</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>array</code> - the array to "add" the element to, may be <code>null</code></dd> |
| <dd><code>element</code> - the object to add, may be <code>null</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A new array containing the existing elements plus the new element |
| The returned array type will be that of the input array (unless null), |
| in which case it will have the same type as the element. |
| If both are null, an IllegalArgumentException is thrown</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if both arguments are null</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| </footer> |
| </body> |
| </html> |