|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkthsmallest.TestArrayUtils
public class TestArrayUtils
This class provides static methods (utilities) for testing properties of arrays.
| Constructor Summary | |
|---|---|
TestArrayUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
testPartitionOfKth(int[] anArray,
int k)
Indicates whether given array is correctly partitioned at position k (must adjust for 0-based indexing) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestArrayUtils()
| Method Detail |
|---|
public static boolean testPartitionOfKth(int[] anArray,
int k)
anArray - an array of intsk - position of partition location to be checked
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||