Instead of this (as given in FAQ) : List collection = mapper.readValue(result,
new TypeReference<ArrayList>() {
});
If I use : TiingoCandle[] collection = mapper.readValue(result, TiingoCandle[].class);
Is it alright?
Instead of this (as given in FAQ) : List collection = mapper.readValue(result,
new TypeReference<ArrayList>() {
});
If I use : TiingoCandle[] collection = mapper.readValue(result, TiingoCandle[].class);
Is it alright?
Its perfectly alright
I would give a small suggestion.
Store the output as list of candles
I.e List< Candle >
Before that you have to wrap the mapper.readValue with Array.asList(mapper.readValue(your arguments))
And store the output from above in list of candles
You are good to go
I dont understand the wrapping part?
Try it out first by yourself.
You will understand why I am saying to wrap it.
I dont understand what is meant by wrapping here?
Ok
Wrapping means paste your current function inside another function
Here I have to use List(candle) or List(TiingoCandle) ?
You are asking both the same
Treat () as <>
Angle brackets are not displaying here. I dont know why?
Looks like you are unfamiliar with Java
I will suggest you to practice Java before attempting the modules.
Otherwise there would be a great difficulty in next modules
I know its the case of interface here. So, both should work fine right?
Ya both will work. YOU CAN CHOOSE ANY OF THE ABOVE
Another doubt please - when I get an array of tingocandle for a particular symbol, which value to choose(as there are lot of them)?
Follow the TODOs in the code
All the instructions are given carefully