rename *Tick classes to *TickEvent

This commit is contained in:
2018-05-26 22:50:05 -07:00
parent 89dd9575d0
commit 583d319ef3
8 changed files with 176 additions and 79 deletions

View File

@ -16,12 +16,12 @@ public class CSVReader implements TickStreamReader {
public void run(TickProcessor processor) {
CsvMapper mapper = new CsvMapper();
CsvSchema schema = mapper.schemaFor(TrueFXTick.class);
CsvSchema schema = mapper.schemaFor(TrueFXTickEvent.class);
try {
MappingIterator<TrueFXTick> it = mapper.readerFor(TrueFXTick.class).with(schema).readValues(file);
MappingIterator<TrueFXTickEvent> it = mapper.readerFor(TrueFXTickEvent.class).with(schema).readValues(file);
while (it.hasNextValue()) {
TrueFXTick value = it.nextValue();
TrueFXTickEvent value = it.nextValue();
processor.process(value);
}
} catch (IOException e) {