lower_bound(), upper_bound() functions for sorted containers
807580Jul 14 2010 — edited Jul 24 2010I 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?