public abstract class AbstractUnsafeListTest<T extends Comparable<T>> extends AbstractListTest
| Modifier and Type | Field and Description |
|---|---|
protected UnsafeArrayList<T> |
list |
r, size| Constructor and Description |
|---|
AbstractUnsafeListTest() |
| Modifier and Type | Method and Description |
|---|---|
long |
bytes() |
abstract T |
newInstance(T obj)
Populates the fields of obj with random values.
|
void |
setup() |
void |
shuffle() |
void |
sort() |
abstract Class<T> |
testClass() |
iterate, iterateInPlace, setRandomSeed, setSizeprotected UnsafeArrayList<T extends Comparable<T>> list
public abstract T newInstance(T obj)
obj - The object to populatepublic void setup()
throws IllegalAccessException,
InstantiationException
setup in class AbstractListTestIllegalAccessExceptionInstantiationExceptionpublic long bytes()
bytes in class AbstractListTestpublic void shuffle()
shuffle in class AbstractListTestpublic void sort()
sort in class AbstractListTestCopyright © 2015. All rights reserved.