Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

lower_bound(), upper_bound() functions for sorted containers

807580Jul 14 2010 — edited Jul 24 2010
I can't find lower_bound(), upper_bound() functions for sorted containers in the java library. It doesn't seem to be there in the apache commons either.
i'm referring here to the meaning as defined in STL (C++) as in:

http://www.cplusplus.com/reference/algorithm/lower_bound/
http://www.cplusplus.com/reference/algorithm/upper_bound/

These functions are extremely useful for range lookups. Why is this not readily available in the java libraries?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2010
Added on Jul 14 2010
13 comments
694 views