public abstract class AbstractArrayListTest<T extends Comparable<T>> extends AbstractListTest
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<T> |
list |
rand, size| Constructor and Description |
|---|
AbstractArrayListTest() |
| Modifier and Type | Method and Description |
|---|---|
long |
bytes()
Calculates the size of the data structure under test.
|
void |
iterateInPlace(org.openjdk.jmh.infra.Blackhole bh)
Iterates through the test list (if it is a InplaceList).
|
abstract T |
newInstance()
Creates a new instance of the test class, with fields populated with random values.
|
void |
setup()
Setups the test.
|
void |
shuffle()
Shuffles the test list.
|
void |
sort()
Sorts the test list.
|
iterate, setRandomSeed, setSizeprotected ArrayList<T extends Comparable<T>> list
public abstract T newInstance()
public void setup()
AbstractListTestsetup in class AbstractListTestpublic long bytes()
AbstractListTestbytes in class AbstractListTestpublic void shuffle()
AbstractListTestshuffle in class AbstractListTestpublic void sort()
AbstractListTestsort in class AbstractListTestpublic void iterateInPlace(org.openjdk.jmh.infra.Blackhole bh)
AbstractListTestiterateInPlace in class AbstractListTestbh - The blackhole to throw your data into.Copyright © 2015. All rights reserved.