rename *Tick classes to *TickEvent
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user