Here you can find the source of find(SortedMap
static <V> SortedMap<String, V> find(SortedMap<String, V> map,
String baseName)
//package com.java2s; import java.util.SortedMap; public class Main { static <V> SortedMap<String, V> find(SortedMap<String, V> map, String baseName) {// w w w . j av a 2 s. c o m return map.subMap(baseName, baseName.concat("\uFFFF")); } }