Skip to content

Commit

Permalink
Add details to the ArraySorter Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 13, 2024
1 parent eee9808 commit d540452
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory">Remove trailing whitespace in StopWatch exception messages.</action>
<action issue="LANG-1754" type="fix" dev="ggregory" due-to="vhbcm">Use getAllSuperclassesAndInterfaces() in getMatchingMethod() #1289.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Add details to the ArrayFill Javadoc.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Add details to the ArraySorter Javadoc.</action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Strings and refactor StringUtils.</action>
<action issue="LANG-1747" type="add" dev="ggregory" due-to="Oliver B. Fischer, Gary Gregory">Add StopWatch.run([Failable]Runnable) and get([Failable]Supplier).</action>
Expand Down
36 changes: 18 additions & 18 deletions src/main/java/org/apache/commons/lang3/ArraySorter.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
public class ArraySorter {

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(byte[])
*/
Expand All @@ -42,9 +42,9 @@ public static byte[] sort(final byte[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(char[])
*/
Expand All @@ -56,9 +56,9 @@ public static char[] sort(final char[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(double[])
*/
Expand All @@ -70,9 +70,9 @@ public static double[] sort(final double[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(float[])
*/
Expand All @@ -84,9 +84,9 @@ public static float[] sort(final float[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(int[])
*/
Expand All @@ -98,9 +98,9 @@ public static int[] sort(final int[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(long[])
*/
Expand All @@ -112,9 +112,9 @@ public static long[] sort(final long[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(short[])
*/
Expand All @@ -126,10 +126,10 @@ public static short[] sort(final short[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param <T> the array type.
* @param array the array to sort.
* @param array the array to sort (may be null).
* @return the given array.
* @see Arrays#sort(Object[])
*/
Expand All @@ -141,10 +141,10 @@ public static <T> T[] sort(final T[] array) {
}

/**
* Sorts and returns the given array.
* Sorts the given array into ascending order and returns it.
*
* @param <T> the array type.
* @param array the array to sort.
* @param array the array to sort (may be null).
* @param comparator the comparator to determine the order of the array. A {@code null} value uses the elements'
* {@link Comparable natural ordering}.
* @return the given array.
Expand Down

0 comments on commit d540452

Please sign in to comment.