Y
Y
Yu Yu2015-03-18 21:45:00
Java
Yu Yu, 2015-03-18 21:45:00

Which container to choose to store float array?

There is a table of the form
| date | float |
|25-03-2015 12:00 | -3.5 |
|25-03-2015 12:30 | -5 |
|25-03-2015 13:00 | +2 |
The table is long. 10000 lines
There are several such tables.
How justified will
ArrayList< LinkedHashMap< Date, Float > > work with it
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur, 2015-03-18
@timych

Yes, it's normal for me. But I would write a wrapper class and store the dates as a time-stamp (Of course, provided that they are unique for one map)

class MyDatesWrapper {
      Integer uniqeWrapperId;
      Map<Long, Float> myDates;
}

Map<Integer, MyDatesWrapper>  datesWrappers;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question