|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.skeet.jbench.tasks.ListFill
Very simple implementation of BenchTask. This just sorts a specified number of integers in a specified type of list.
Constructor Summary | |
ListFill()
|
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()
Create the instance, but don't populate it. |
void |
runTest()
Runs the test itself - populates the list with size
references to the current test. |
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 ListFill()
Method Detail |
public void setType(java.lang.Class listType)
public void setSize(int size)
public void checkConfiguration() throws ConfigurationException
checkConfiguration
in interface BenchTask
uk.org.skeet.jbench.BenchTask
ConfigurationException
- if the configuration specified is incomplete
or invalid.public void prepareTest() throws TaskException
prepareTest
in interface BenchTask
uk.org.skeet.jbench.BenchTask
TaskException
- if the preparation failed.public void runTest()
size
references to the current test.runTest
in interface BenchTask
uk.org.skeet.jbench.BenchTask
TaskException
- if the test failed to complete normally.public void checkResults() throws TaskException
checkResults
in interface BenchTask
uk.org.skeet.jbench.BenchTask
TaskException
- 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 |