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, setSize
protected ArrayList<T extends Comparable<T>> list
public abstract T newInstance()
public void setup()
AbstractListTest
setup
in class AbstractListTest
public long bytes()
AbstractListTest
bytes
in class AbstractListTest
public void shuffle()
AbstractListTest
shuffle
in class AbstractListTest
public void sort()
AbstractListTest
sort
in class AbstractListTest
public void iterateInPlace(org.openjdk.jmh.infra.Blackhole bh)
AbstractListTest
iterateInPlace
in class AbstractListTest
bh
- The blackhole to throw your data into.Copyright © 2015. All rights reserved.