Code example for SortedMap

Methods: entrySet

0
    public Comparator<? super K> comparator() {
        return comparator;
    } 
 
    public Set<Map.Entry<K, V>> entrySet() {
        return tailMap(firstKey()).entrySet();
    } 
 
    public K firstKey() { 
        return entries.get(0).getKey();
    } 
 
    public SortedMap<K, V> headMap(K key) {     
        return new SubMap(false, null, true, key);
    } 
 
    public Set<K> keySet() {
        return tailMap(firstKey()).keySet();
    } 
 
    public K lastKey() {