I need data structure for effective handling with dates

Posted by ante.sabo on Stack Overflow See other posts from Stack Overflow or by ante.sabo
Published on 2010-05-13T08:47:30Z Indexed on 2010/05/13 9:04 UTC
Read the original article Hit count: 273

Filed under:
|
|

What I need is something like Hashtable which I will fill with prices that were actual at desired days.

For example: I will put two prices: January 1st: 100USD, March 5th: 89USD.

If I search my hashtable for price: hashtable.get(February 14th) I need it to give me back actual price which was entered at Jan. 1st because this is the last actual price. Normal hashtable implementation won't give me back anything, since there is nothing put on that dat.

I need to see if there is such implementation which can find quickly object based on range of dates.

© Stack Overflow or respective owner

Related posts about java

Related posts about hashtable