org.mrd.repast.util
Class MoreArrays
java.lang.Object
|
+--org.mrd.repast.util.MoreArrays
- public abstract class MoreArrays
- extends java.lang.Object
Method Summary |
static boolean |
contains(boolean[] array,
boolean target)
|
static boolean |
contains(char[] array,
char target)
|
static boolean |
contains(double[] array,
double target)
|
static boolean |
contains(int[] array,
int target)
|
static boolean |
contains(java.lang.Object[] array,
java.lang.Object target)
|
static void |
copy(java.lang.Object array1,
int i1,
java.lang.Object array2,
int i2,
int regionLength)
|
static void |
insertionSort(double[] array)
|
static boolean |
interpolationSearch(double[] array,
double target)
|
static boolean |
isEmpty(boolean[] array)
|
static boolean |
isEmpty(char[] array)
|
static boolean |
isEmpty(double[] array)
|
static boolean |
isEmpty(int[] array)
|
static boolean |
isEmpty(java.lang.Object[] array)
|
static boolean |
linearSearch(double[] array,
double target)
|
protected static double[] |
merge(double[] array1,
double[] array2)
|
static double[] |
mergeSort(double[] array)
|
protected static double[] |
mergeSort(double[] array,
int lo,
int hi)
|
protected static int |
partition(double[] array,
int lo,
int hi)
|
static void |
quickSort(double[] array)
|
protected static void |
quickSort(double[] array,
int lo,
int hi)
|
static void |
swap(boolean[] array,
int i,
int j)
|
static void |
swap(char[] array,
int i,
int j)
|
static void |
swap(double[] array,
int i,
int j)
|
static void |
swap(int[] array,
int i,
int j)
|
static void |
swap(java.lang.Object[] array,
int i,
int j)
|
static java.lang.String |
toString(boolean[] array)
|
static java.lang.String |
toString(char[] array)
|
static java.lang.String |
toString(double[] array)
|
static java.lang.String |
toString(int[] array)
|
static java.lang.String |
toString(java.lang.Object[] array)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copy
public static void copy(java.lang.Object array1,
int i1,
java.lang.Object array2,
int i2,
int regionLength)
contains
public static boolean contains(boolean[] array,
boolean target)
contains
public static boolean contains(char[] array,
char target)
contains
public static boolean contains(double[] array,
double target)
contains
public static boolean contains(int[] array,
int target)
contains
public static boolean contains(java.lang.Object[] array,
java.lang.Object target)
insertionSort
public static void insertionSort(double[] array)
interpolationSearch
public static boolean interpolationSearch(double[] array,
double target)
isEmpty
public static boolean isEmpty(boolean[] array)
isEmpty
public static boolean isEmpty(char[] array)
isEmpty
public static boolean isEmpty(double[] array)
isEmpty
public static boolean isEmpty(int[] array)
isEmpty
public static boolean isEmpty(java.lang.Object[] array)
linearSearch
public static boolean linearSearch(double[] array,
double target)
merge
protected static double[] merge(double[] array1,
double[] array2)
mergeSort
public static double[] mergeSort(double[] array)
mergeSort
protected static double[] mergeSort(double[] array,
int lo,
int hi)
partition
protected static int partition(double[] array,
int lo,
int hi)
quickSort
public static void quickSort(double[] array)
quickSort
protected static void quickSort(double[] array,
int lo,
int hi)
swap
public static void swap(boolean[] array,
int i,
int j)
swap
public static void swap(char[] array,
int i,
int j)
swap
public static void swap(double[] array,
int i,
int j)
swap
public static void swap(int[] array,
int i,
int j)
swap
public static void swap(java.lang.Object[] array,
int i,
int j)
toString
public static java.lang.String toString(boolean[] array)
toString
public static java.lang.String toString(char[] array)
toString
public static java.lang.String toString(double[] array)
toString
public static java.lang.String toString(int[] array)
toString
public static java.lang.String toString(java.lang.Object[] array)
Copyright © 2000-2003 Mark Robert Diggory. All Rights Reserved.