Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 31, 2024
1 parent 6b1da52 commit 62b5aca
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/main/java/org/apache/commons/lang3/ArrayUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1558,10 +1558,6 @@ public static <T> T[] clone(final T[] array) {
* <p>
* The method returns {@code false} if a {@code null} array is passed in.
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* </p>
*
* @param array the array to search through
* @param valueToFind the value to find
Expand All @@ -1578,7 +1574,7 @@ public static boolean contains(final boolean[] array, final boolean valueToFind)
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(byte[])} and {@link Arrays#binarySearch(byte[], byte)}.
* </p>
*
* @param array the array to search through
Expand All @@ -1596,7 +1592,7 @@ public static boolean contains(final byte[] array, final byte valueToFind) {
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(char[])} and {@link Arrays#binarySearch(char[], char)}.
* </p>
*
* @param array the array to search through
Expand All @@ -1615,7 +1611,7 @@ public static boolean contains(final char[] array, final char valueToFind) {
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(double[])} and {@link Arrays#binarySearch(double[], double)}.
* </p>
*
* @param array the array to search through
Expand All @@ -1636,7 +1632,7 @@ public static boolean contains(final double[] array, final double valueToFind) {
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(double[])} and {@link Arrays#binarySearch(double[], double)}.
* </p>
*
* @param array the array to search
Expand All @@ -1655,7 +1651,7 @@ public static boolean contains(final double[] array, final double valueToFind, f
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(float[])} and {@link Arrays#binarySearch(float[], float)}.
* </p>
*
* @param array the array to search through
Expand All @@ -1673,7 +1669,7 @@ public static boolean contains(final float[] array, final float valueToFind) {
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(int[])} and {@link Arrays#binarySearch(int[], int)}.
* </p>
*
* @param array the array to search through
Expand All @@ -1691,7 +1687,7 @@ public static boolean contains(final int[] array, final int valueToFind) {
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(long[])} and {@link Arrays#binarySearch(long[], long)}.
* </p>
*
* @param array the array to search through
Expand Down Expand Up @@ -1727,7 +1723,7 @@ public static boolean contains(final Object[] array, final Object objectToFind)
* </p>
* <p>
* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using
* {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}.
* {@link Arrays#sort(short[])} and {@link Arrays#binarySearch(short[], short)}.
* </p>
*
* @param array the array to search through
Expand Down

0 comments on commit 62b5aca

Please sign in to comment.