S
sunil panda
Hi Friends,
I am new to java as well as to this group. I have a small question.
I need to know as to how I can retrieve the lower bound
and upper bound value from a container(TreeMap or HashMap)
for a given key.
Example: Map
Key Value
2 22
3 33
9 99
7 77
If the given key is 6, I need the lower bound as 2 and upperbound as 7.
Are their any API's?. My container will store thousands of messages
and I cannot go for a linear search in real time thread.
I am new to java as well as to this group. I have a small question.
I need to know as to how I can retrieve the lower bound
and upper bound value from a container(TreeMap or HashMap)
for a given key.
Example: Map
Key Value
2 22
3 33
9 99
7 77
If the given key is 6, I need the lower bound as 2 and upperbound as 7.
Are their any API's?. My container will store thousands of messages
and I cannot go for a linear search in real time thread.