Code example for SortedMap

Methods: headMap

    public K firstKey() { 
        return getSortedMap().firstKey();
    public SortedMap<K, V> headMap(K toKey) {
        return getSortedMap().headMap(toKey);
    public K lastKey() { 
        return getSortedMap().lastKey();
    public SortedMap<K, V> subMap(K fromKey, K toKey) {
        return getSortedMap().subMap(fromKey, toKey);
    public SortedMap<K, V> tailMap(K fromKey) {
        return getSortedMap().tailMap(fromKey);
Connect your IDE to all the code out there  Get Codota for Java