|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectArraysMDE
public final class ArraysMDE
Utilities for manipulating arrays. This complements @link{java.util.Arrays}. Also, some routines also handle Collections.
| Nested Class Summary | |
|---|---|
static class |
ArraysMDE.ComparableArrayComparatorLengthFirst<T extends Comparable<T>>
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.ComparableArrayComparatorLexical<T extends Comparable<T>>
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.DoubleArrayComparatorLexical
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.IntArrayComparatorLengthFirst
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.IntArrayComparatorLexical
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.LongArrayComparatorLengthFirst
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.LongArrayComparatorLexical
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.ObjectArrayComparatorLengthFirst
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.ObjectArrayComparatorLexical
Note: this comparator imposes orderings that are inconsistent with equals. |
static class |
ArraysMDE.StringArrayComparatorLexical
Note: this comparator imposes orderings that are inconsistent with equals. |
| Field Summary | |
|---|---|
Vector<?> |
javadocLossage
|
| Method Summary | ||
|---|---|---|
static boolean |
all_null(List<?> a)
|
|
static boolean |
all_null(Object[] a)
|
|
static boolean |
any_null(List<?> a)
|
|
static boolean |
any_null(Object[] a)
|
|
static boolean[] |
concat(boolean[] a,
boolean[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static byte[] |
concat(byte[] a,
byte[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static char[] |
concat(char[] a,
char[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static double[] |
concat(double[] a,
double[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static float[] |
concat(float[] a,
float[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static int[] |
concat(int[] a,
int[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static
|
concat(List<T> a,
List<T> b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static
|
concat(List<T> a,
T[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static long[] |
concat(long[] a,
long[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static short[] |
concat(short[] a,
short[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static String[] |
concat(String[] a,
String[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static
|
concat(T[] a,
List<T> b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static
|
concat(T[] a,
T[] b)
Return an array that contains all the elements of both argument arrays, in order. |
|
static int |
element_range(int[] a)
Return the difference between the smallest and largest array elements. |
|
static long |
element_range(long[] a)
Return the difference between the smallest and largest array elements. |
|
static int[] |
fn_compose(int[] a,
int[] b)
|
|
static int[] |
fn_identity(int length)
|
|
static int[] |
fn_inverse_permutation(int[] a)
Requires that fn_is_permutation(a) holds. |
|
static int[] |
fn_inverse(int[] a,
int arange)
|
|
static boolean |
fn_is_permutation(int[] a)
|
|
static boolean |
fn_is_total(int[] a)
|
|
static int |
indexOf(boolean[] a,
boolean elt)
Searches for the first occurence of the given element in the array. |
|
static int |
indexOf(boolean[] a,
boolean[] sub)
Searches for the first subsequence of the array that matches the given array elementwise. |
|
static int |
indexOf(boolean[] a,
boolean elt,
int minindex,
int indexlimit)
Searches for the first occurence of the given element in the array. |
|
static int |
indexOf(double[] a,
double elt)
Searches for the first occurence of the given element in the array. |
|
static int |
indexOf(double[] a,
double[] sub)
Searches for the first subsequence of the array that matches the given array elementwise. |
|
static int |
indexOf(int[] a,
int elt)
Searches for the first occurence of the given element in the array. |
|
static int |
indexOf(int[] a,
int[] sub)
Searches for the first subsequence of the array that matches the given array elementwise. |
|
static int |
indexOf(int[] a,
int elt,
int minindex,
int indexlimit)
Searches for the first occurence of the given element in the array. |
|
static int |
indexOf(List<?> a,
List<?> sub)
Searches for the first subsequence of the list that matches the given list elementwise, testing for equality using the equals method. |
|
static int |
indexOf(List<?> a,
Object[] sub)
Searches for the first subsequence of the list that matches the given array elementwise, testing for equality using the equals method. |
|
static int |
indexOf(List<? extends Object> a,
Object elt)
Searches for the first occurence of the given element in the list, testing for equality using the equals method. |
|
static int |
indexOf(List<? extends Object> a,
Object elt,
int minindex,
int indexlimit)
Searches for the first occurence of the given element in the list, testing for equality using the equals method. |
|
static int |
indexOf(long[] a,
long elt)
Searches for the first occurence of the given element in the array. |
|
static int |
indexOf(long[] a,
long[] sub)
Searches for the first subsequence of the array that matches the given array elementwise. |
|
static int |
indexOf(long[] a,
long elt,
int minindex,
int indexlimit)
Searches for the first occurence of the given element in the array. |
|
static int |
indexOf(Object[] a,
List<?> sub)
Searches for the first subsequence of the array that matches the given list elementwise, testing for equality using the equals method. |
|
static int |
indexOf(Object[] a,
Object[] sub)
Searches for the first subsequence of the array that matches the given array elementwise, testing for equality using the equals method. |
|
static
|
indexOf(T[] a,
Object elt)
Searches for the first occurence of the given element in the array, testing for equality using the equals method. |
|
static
|
indexOf(T[] a,
Object elt,
int minindex,
int indexlimit)
Searches for the first occurence of the given element in the array, testing for equality using the equals method. |
|
static int |
indexOfEq(List<?> a,
List<?> sub)
Searches for the first subsequence of the list that matches the given list elementwise, testing for equality using == (not the equals method). |
|
static int |
indexOfEq(List<?> a,
Object[] sub)
Searches for the first subsequence of the list that matches the given array elementwise, testing for equality using == (not the equals method). |
|
static int |
indexOfEq(List<? extends Object> a,
Object elt)
Searches for the first occurence of the given element in the list, testing for equality using == (not the equals method). |
|
static int |
indexOfEq(List<? extends Object> a,
Object elt,
int minindex,
int indexlimit)
Searches for the first occurence of the given element in the list, testing for equality using == (not the equals method). |
|
static int |
indexOfEq(Object[] a,
List<?> sub)
Searches for the first subsequence of the array that matches the given list elementwise, testing for equality using == (not the equals method). |
|
static int |
indexOfEq(Object[] a,
Object elt)
Searches for the first occurence of the given element in the array, testing for equality using == (not the equals method). |
|
static int |
indexOfEq(Object[] a,
Object[] sub)
Searches for the first subsequence of the array that matches the given array elementwise, testing for equality using == (not the equals method). |
|
static int |
indexOfEq(Object[] a,
Object elt,
int minindex,
int indexlimit)
Searches for the first occurence of the given element in the array, testing for equality using == (not the equals method). |
|
static boolean |
isSubarray(boolean[] a,
boolean[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first. |
|
static boolean |
isSubarray(double[] a,
double[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first. |
|
static boolean |
isSubarray(int[] a,
int[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first. |
|
static boolean |
isSubarray(List<?> a,
List<?> sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method. |
|
static boolean |
isSubarray(List<?> a,
Object[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method. |
|
static boolean |
isSubarray(long[] a,
long[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first. |
|
static boolean |
isSubarray(Object[] a,
List<?> sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method. |
|
static boolean |
isSubarray(Object[] a,
Object[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using the equals method. |
|
static boolean |
isSubarrayEq(List<?> a,
List<?> sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method). |
|
static boolean |
isSubarrayEq(List<?> a,
Object[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method). |
|
static boolean |
isSubarrayEq(Object[] a,
List<?> sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method). |
|
static boolean |
isSubarrayEq(Object[] a,
Object[] sub,
int a_offset)
Determines whether the second array is a subarray of the first, starting at the specified index of the first, testing for equality using == (not the equals method). |
|
static boolean |
isSubset(double[] smaller,
double[] bigger)
Whether smaller is a subset of bigger. |
|
static boolean |
isSubset(long[] smaller,
long[] bigger)
Whether smaller is a subset of bigger. |
|
static boolean |
isSubset(String[] smaller,
String[] bigger)
Whether smaller is a subset of bigger. |
|
static int |
length(Object obj)
Casts obj down to the proper array type then calls .length. |
|
static double |
max(double[] a)
Return the largest value in the array. |
|
static Double |
max(Double[] a)
Return the largest value in the array. |
|
static int |
max(int[] a)
Return the largest value in the array. |
|
static Integer |
max(Integer[] a)
Return the largest value in the array. |
|
static long |
max(long[] a)
Return the largest value in the array. |
|
static Long |
max(Long[] a)
Return the largest value in the array. |
|
static int[] |
min_max(int[] a)
Return a two-element array containing the smallest and largest values in the array. |
|
static long[] |
min_max(long[] a)
Return a two-element array containing the smallest and largest values in the array. |
|
static double |
min(double[] a)
Return the smallest value in the array. |
|
static Double |
min(Double[] a)
Return the smallest value in the array. |
|
static int |
min(int[] a)
Return the smallest value in the array. |
|
static Integer |
min(Integer[] a)
Return the smallest value in the array. |
|
static long |
min(long[] a)
Return the smallest value in the array. |
|
static Long |
min(Long[] a)
Return the smallest value in the array. |
|
static boolean |
noDuplicates(boolean[] a)
|
|
static boolean |
noDuplicates(byte[] a)
|
|
static boolean |
noDuplicates(char[] a)
|
|
static boolean |
noDuplicates(double[] a)
|
|
static boolean |
noDuplicates(float[] a)
|
|
static boolean |
noDuplicates(int[] a)
|
|
static
|
noDuplicates(List<T> a)
|
|
static boolean |
noDuplicates(long[] a)
|
|
static boolean |
noDuplicates(Object[] a)
|
|
static boolean |
noDuplicates(short[] a)
|
|
static boolean |
noDuplicates(String[] a)
|
|
static boolean |
sorted_descending(int[] a)
|
|
static boolean |
sorted_descending(long[] a)
|
|
static boolean |
sorted(int[] a)
|
|
static boolean |
sorted(long[] a)
|
|
static boolean[] |
subarray(boolean[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static byte[] |
subarray(byte[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static char[] |
subarray(char[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static double[] |
subarray(double[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static float[] |
subarray(float[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static int[] |
subarray(int[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static
|
subarray(List<T> a,
int startindex,
int length)
Return a sublist of the given list. |
|
static long[] |
subarray(long[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static Object[] |
subarray(Object[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static short[] |
subarray(short[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static String[] |
subarray(String[] a,
int startindex,
int length)
Return a subarray of the given array. |
|
static double |
sum(double[] a)
|
|
static double |
sum(double[][] a)
|
|
static int |
sum(int[] a)
|
|
static int |
sum(int[][] a)
|
|
static String |
toString(boolean[] a)
Return a string representation of the array. |
|
static String |
toString(double[] a)
Return a string representation of the array. |
|
static String |
toString(float[] a)
Return a string representation of the array. |
|
static String |
toString(int[] a)
Return a string representation of the array. |
|
static String |
toString(List<?> a)
Return a string representation of the array. |
|
static String |
toString(List<?> a,
boolean quoted)
Return a string representation of the array. |
|
static String |
toString(long[] a)
Return a string representation of the array. |
|
static String |
toString(Object obj)
Casts obj down to the proper array type then calls the appropriate toString() method. |
|
static String |
toString(Object[] a)
Return a string representation of the array. |
|
static String |
toString(Object[] a,
boolean quoted)
Return a string representation of the array. |
|
static String |
toStringQuoted(List<?> a)
Return a string representation of the array. |
|
static String |
toStringQuoted(Object[] a)
Return a string representation of the array. |
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Vector<?> javadocLossage
| Method Detail |
|---|
public static int min(int[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static long min(long[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static double min(double[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static Integer min(Integer[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static Long min(Long[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static Double min(Double[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static int max(int[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static long max(long[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static double max(double[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static Integer max(Integer[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static Long max(Long[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static Double max(Double[] a)
ArrayIndexOutOfBoundsException - if the array has length 0public static int[] min_max(int[] a)
public static long[] min_max(long[] a)
public static int element_range(int[] a)
public static long element_range(long[] a)
public static int sum(int[] a)
public static int sum(int[][] a)
public static double sum(double[] a)
public static double sum(double[][] a)
public static <T> int indexOf(T[] a,
Object elt)
List.indexOf(java.lang.Object)
public static <T> int indexOf(T[] a,
Object elt,
int minindex,
int indexlimit)
List.indexOf(java.lang.Object)
public static int indexOf(List<? extends Object> a,
Object elt)
List.indexOf(java.lang.Object)
public static int indexOf(List<? extends Object> a,
Object elt,
int minindex,
int indexlimit)
List.indexOf(java.lang.Object)
public static int indexOfEq(Object[] a,
Object elt)
Vector.indexOf(java.lang.Object)
public static int indexOfEq(Object[] a,
Object elt,
int minindex,
int indexlimit)
Vector.indexOf(java.lang.Object)
public static int indexOfEq(List<? extends Object> a,
Object elt)
Vector.indexOf(java.lang.Object)
public static int indexOfEq(List<? extends Object> a,
Object elt,
int minindex,
int indexlimit)
Vector.indexOf(java.lang.Object)
public static int indexOf(int[] a,
int elt)
Vector.indexOf(java.lang.Object)
public static int indexOf(long[] a,
long elt)
Vector.indexOf(java.lang.Object)
public static int indexOf(int[] a,
int elt,
int minindex,
int indexlimit)
Vector.indexOf(java.lang.Object)
public static int indexOf(long[] a,
long elt,
int minindex,
int indexlimit)
Vector.indexOf(java.lang.Object)
public static int indexOf(boolean[] a,
boolean elt)
Vector.indexOf(java.lang.Object)
public static int indexOf(double[] a,
double elt)
Vector.indexOf(java.lang.Object)
public static int indexOf(boolean[] a,
boolean elt,
int minindex,
int indexlimit)
Vector.indexOf(java.lang.Object)
public static int indexOf(Object[] a,
Object[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOfEq(Object[] a,
Object[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOf(List<?> a,
Object[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOfEq(List<?> a,
Object[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOf(Object[] a,
List<?> sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOfEq(Object[] a,
List<?> sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOf(List<?> a,
List<?> sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOfEq(List<?> a,
List<?> sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOf(int[] a,
int[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOf(double[] a,
double[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOf(long[] a,
long[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static int indexOf(boolean[] a,
boolean[] sub)
Vector.indexOf(java.lang.Object),
String.indexOf(java.lang.String)
public static Object[] subarray(Object[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static <T> List<T> subarray(List<T> a,
int startindex,
int length)
a - the original liststartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static String[] subarray(String[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static byte[] subarray(byte[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static boolean[] subarray(boolean[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static char[] subarray(char[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static double[] subarray(double[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static float[] subarray(float[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static int[] subarray(int[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static long[] subarray(long[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static short[] subarray(short[] a,
int startindex,
int length)
a - the original arraystartindex - the first index to be includedlength - the number of elements to include (not an end index,
to avoid confusion over whether it would be the last included
index or the first non-included index)
public static boolean isSubarray(Object[] a,
Object[] sub,
int a_offset)
public static boolean isSubarrayEq(Object[] a,
Object[] sub,
int a_offset)
public static boolean isSubarray(Object[] a,
List<?> sub,
int a_offset)
public static boolean isSubarrayEq(Object[] a,
List<?> sub,
int a_offset)
public static boolean isSubarray(List<?> a,
Object[] sub,
int a_offset)
public static boolean isSubarrayEq(List<?> a,
Object[] sub,
int a_offset)
public static boolean isSubarray(List<?> a,
List<?> sub,
int a_offset)
public static boolean isSubarrayEq(List<?> a,
List<?> sub,
int a_offset)
public static boolean isSubarray(int[] a,
int[] sub,
int a_offset)
public static boolean isSubarray(long[] a,
long[] sub,
int a_offset)
public static boolean isSubarray(double[] a,
double[] sub,
int a_offset)
public static boolean isSubarray(boolean[] a,
boolean[] sub,
int a_offset)
public static <T> T[] concat(T[] a,
T[] b)
public static <T> T[] concat(T[] a,
List<T> b)
public static <T> T[] concat(List<T> a,
T[] b)
public static <T> T[] concat(List<T> a,
List<T> b)
public static String[] concat(String[] a,
String[] b)
public static byte[] concat(byte[] a,
byte[] b)
public static boolean[] concat(boolean[] a,
boolean[] b)
public static char[] concat(char[] a,
char[] b)
public static double[] concat(double[] a,
double[] b)
public static float[] concat(float[] a,
float[] b)
public static int[] concat(int[] a,
int[] b)
public static long[] concat(long[] a,
long[] b)
public static short[] concat(short[] a,
short[] b)
public static String toString(Object[] a)
Vector.toString()public static String toStringQuoted(Object[] a)
Vector.toString()
public static String toString(Object[] a,
boolean quoted)
Vector.toString()public static String toString(List<?> a)
Vector.toString()public static String toStringQuoted(List<?> a)
Vector.toString()
public static String toString(List<?> a,
boolean quoted)
Vector.toString()public static String toString(int[] a)
Vector.toString()public static String toString(long[] a)
Vector.toString()public static String toString(double[] a)
Vector.toString()public static String toString(float[] a)
Vector.toString()public static String toString(boolean[] a)
Vector.toString()
public static String toString(Object obj)
throws IllegalArgumentException
IllegalArgumentException - if obj is null or is not one of the types mentioned above.
public static int length(Object obj)
throws IllegalArgumentException
IllegalArgumentException - if obj is null or is not one of the types mentioned above.public static boolean sorted(int[] a)
public static boolean sorted(long[] a)
public static boolean sorted_descending(int[] a)
public static boolean sorted_descending(long[] a)
public static boolean noDuplicates(boolean[] a)
public static boolean noDuplicates(byte[] a)
public static boolean noDuplicates(char[] a)
public static boolean noDuplicates(float[] a)
public static boolean noDuplicates(short[] a)
public static boolean noDuplicates(int[] a)
public static boolean noDuplicates(double[] a)
public static boolean noDuplicates(long[] a)
public static boolean noDuplicates(String[] a)
public static boolean noDuplicates(Object[] a)
public static <T> boolean noDuplicates(List<T> a)
public static boolean fn_is_permutation(int[] a)
public static boolean fn_is_total(int[] a)
public static int[] fn_identity(int length)
public static int[] fn_inverse_permutation(int[] a)
a - the input permutation
fn_is_permutation(int[])
public static int[] fn_inverse(int[] a,
int arange)
a - function from [0..a.length) to [0..arange)
UnsupportedOperationException - when the function is not invertible
public static int[] fn_compose(int[] a,
int[] b)
a - function from [0..a.length) to [0..b.length)b - function from [0..b.length) to range R
public static boolean isSubset(long[] smaller,
long[] bigger)
public static boolean isSubset(double[] smaller,
double[] bigger)
public static boolean isSubset(String[] smaller,
String[] bigger)
public static boolean any_null(Object[] a)
public static boolean all_null(Object[] a)
public static boolean any_null(List<?> a)
public static boolean all_null(List<?> a)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||