| 
 | Colt 1.2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcern.colt.Arrays
Array manipulations; complements java.util.Arrays.
Arrays, 
Sorting| Method Summary | |
| static boolean[] | ensureCapacity(boolean[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static byte[] | ensureCapacity(byte[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static char[] | ensureCapacity(char[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static double[] | ensureCapacity(double[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static float[] | ensureCapacity(float[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static int[] | ensureCapacity(int[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static long[] | ensureCapacity(long[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static Object[] | ensureCapacity(Object[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static short[] | ensureCapacity(short[] array,
               int minCapacity)Ensures that a given array can hold up to minCapacity elements. | 
| static String | toString(boolean[] array)Returns a string representation of the specified array. | 
| static String | toString(byte[] array)Returns a string representation of the specified array. | 
| static String | toString(char[] array)Returns a string representation of the specified array. | 
| static String | toString(double[] array)Returns a string representation of the specified array. | 
| static String | toString(float[] array)Returns a string representation of the specified array. | 
| static String | toString(int[] array)Returns a string representation of the specified array. | 
| static String | toString(long[] array)Returns a string representation of the specified array. | 
| static String | toString(Object[] array)Returns a string representation of the specified array. | 
| static String | toString(short[] array)Returns a string representation of the specified array. | 
| static boolean[] | trimToCapacity(boolean[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static byte[] | trimToCapacity(byte[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static char[] | trimToCapacity(char[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static double[] | trimToCapacity(double[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static float[] | trimToCapacity(float[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static int[] | trimToCapacity(int[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static long[] | trimToCapacity(long[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static Object[] | trimToCapacity(Object[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| static short[] | trimToCapacity(short[] array,
               int maxCapacity)Ensures that the specified array cannot hold more than maxCapacity elements. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public static byte[] ensureCapacity(byte[] array,
                                    int minCapacity)
minCapacity - the desired minimum capacity.
public static char[] ensureCapacity(char[] array,
                                    int minCapacity)
minCapacity - the desired minimum capacity.
public static double[] ensureCapacity(double[] array,
                                      int minCapacity)
minCapacity - the desired minimum capacity.
public static float[] ensureCapacity(float[] array,
                                     int minCapacity)
minCapacity - the desired minimum capacity.
public static int[] ensureCapacity(int[] array,
                                   int minCapacity)
minCapacity - the desired minimum capacity.
public static long[] ensureCapacity(long[] array,
                                    int minCapacity)
minCapacity - the desired minimum capacity.
public static Object[] ensureCapacity(Object[] array,
                                      int minCapacity)
minCapacity - the desired minimum capacity.
public static short[] ensureCapacity(short[] array,
                                     int minCapacity)
minCapacity - the desired minimum capacity.
public static boolean[] ensureCapacity(boolean[] array,
                                       int minCapacity)
minCapacity - the desired minimum capacity.public static String toString(byte[] array)
public static String toString(char[] array)
public static String toString(double[] array)
public static String toString(float[] array)
public static String toString(int[] array)
public static String toString(long[] array)
public static String toString(Object[] array)
public static String toString(short[] array)
public static String toString(boolean[] array)
public static byte[] trimToCapacity(byte[] array,
                                    int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static char[] trimToCapacity(char[] array,
                                    int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static double[] trimToCapacity(double[] array,
                                      int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static float[] trimToCapacity(float[] array,
                                     int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static int[] trimToCapacity(int[] array,
                                   int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static long[] trimToCapacity(long[] array,
                                    int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static Object[] trimToCapacity(Object[] array,
                                      int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static short[] trimToCapacity(short[] array,
                                     int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.
public static boolean[] trimToCapacity(boolean[] array,
                                       int maxCapacity)
Returns the identical array if array.length <= maxCapacity. Otherwise, returns a new array with a length of maxCapacity containing the first maxCapacity elements of array.
maxCapacity - the desired maximum capacity.| 
 | Colt 1.2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||