I have a file with data lines like
<Long> <...Other Stuff...>
which I want to read into a Java SortedMap<Long, <OtherStuffType>> (or something similar with a fast get() method for multiple lookups). Now, my data is already sorted, so does there exist an efficient implementation of SortedSet for this case - e.g. one with a guaranteed constant-time put() when a new entry has a larger key than any existing entry.