Class ArraySorter
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.lang3.ArraySorter
Sorts and returns arrays in the fluent style.
- Since:
- 3.12.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
sort
(byte[] array) Sorts and returns the given array.static char[]
sort
(char[] array) Sorts and returns the given array.static double[]
sort
(double[] array) Sorts and returns the given array.static float[]
sort
(float[] array) Sorts and returns the given array.static int[]
sort
(int[] array) Sorts and returns the given array.static long[]
sort
(long[] array) Sorts and returns the given array.static short[]
sort
(short[] array) Sorts and returns the given array.static <T> T[]
sort
(T[] array) Sorts and returns the given array.static <T> T[]
sort
(T[] array, Comparator<? super T> comparator) Sorts and returns the given array.
-
Constructor Details
-
ArraySorter
public ArraySorter()
-
-
Method Details
-
sort
public static byte[] sort(byte[] array) Sorts and returns the given array.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
public static char[] sort(char[] array) Sorts and returns the given array.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
public static double[] sort(double[] array) Sorts and returns the given array.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
public static float[] sort(float[] array) Sorts and returns the given array.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
public static int[] sort(int[] array) Sorts and returns the given array.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
public static long[] sort(long[] array) Sorts and returns the given array.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
public static short[] sort(short[] array) Sorts and returns the given array.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
public static <T> T[] sort(T[] array) Sorts and returns the given array.- Type Parameters:
T
- the array type.- Parameters:
array
- the array to sort.- Returns:
- the given array.
- See Also:
-
sort
Sorts and returns the given array.- Type Parameters:
T
- the array type.- Parameters:
array
- the array to sort.comparator
- the comparator to determine the order of the array. Anull
value uses the elements'natural ordering
.- Returns:
- the given array.
- See Also:
-