|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--uk.org.skeet.jbench.tasks.ListSort
Very simple implementation of BenchTask. This just sorts a specified number of integers in a specified type of list.
| Constructor Summary | |
ListSort()
|
|
| Method Summary | |
void |
checkConfiguration()
Checks that the configuration is valid |
void |
checkResults()
Checks the results |
java.lang.String |
getDescription()
Returns a description of the test, including the parameters |
void |
prepareTest()
Prepares a test by creating and populating a list |
void |
runTest()
Runs the test itself |
void |
setSize(int size)
Sets the size of the test, ie the number of elements to sort |
void |
setType(java.lang.Class listType)
Sets the type of list to use, eg java.util.ArrayList |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ListSort()
| Method Detail |
public void setType(java.lang.Class listType)
public void setSize(int size)
public void checkConfiguration()
throws ConfigurationException
checkConfiguration in interface BenchTaskuk.org.skeet.jbench.BenchTaskConfigurationException - if the configuration specified is incomplete
or invalid.
public void prepareTest()
throws TaskException
prepareTest in interface BenchTaskuk.org.skeet.jbench.BenchTaskTaskException - if the preparation failed.public void runTest()
runTest in interface BenchTaskuk.org.skeet.jbench.BenchTaskTaskException - if the test failed to complete normally.
public void checkResults()
throws TaskException
checkResults in interface BenchTaskuk.org.skeet.jbench.BenchTaskTaskException - if the test failed.public java.lang.String getDescription()
getDescription in interface BenchTask
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||