|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.lang.Array
public class Array
Array utilities.
| Method Summary | |
|---|---|
static String |
byteArrayToString(byte[] b)
Converts a byte array to a Hex String. |
static int[][] |
getIntervals(int[] numbers)
Returns the continuous sequences of integers contained in the input array. |
static String |
join(int[] arr,
char delim)
Joins the elements of an int array to a character-delimited String. |
static String |
join(Object[] arr,
char delim)
Joins the elements of an Object array to a character-delimited String. |
static double[] |
slice(double[] src,
int begin,
int length)
Extracts a sub-array from a double array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String join(Object[] arr,
char delim)
arr - the array to joindelim - the delimiter to use
public static String join(int[] arr,
char delim)
arr - the array to joindelim - the delimiter to use
public static String byteArrayToString(byte[] b)
b - a non-null byte array
public static int[][] getIntervals(int[] numbers)
numbers - the set of integers to analyze
null if numbers is null
or empty. Otherwise an ordered array of pairs of integers, which are
the lower and upper bounds of the continuous sequences of integers
contained in the input.
public static double[] slice(double[] src,
int begin,
int length)
src - a non-null double arraybegin - the start of the sub-array to extractlength - the length of the sub-array to extract
{src[begin], ..., src[begin + length - 1]}
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||