Code example for SortedMap

Methods: comparator

0
    public K lastKey() { 
        return getSortedMap().lastKey();
    } 
 
    public Comparator<? super K> comparator() {
        return getSortedMap().comparator();
    } 
 
    public SortedMap<K, V> subMap(K fromKey, K toKey) {
        SortedMap<K, V> map = getSortedMap().subMap(fromKey, toKey);
        return new PredicatedSortedMap<K, V>(map, keyPredicate, valuePredicate);
    } 
 
    public SortedMap<K, V> headMap(K toKey) {
        SortedMap map = getSortedMap().headMap(toKey);
        return new PredicatedSortedMap<K, V>(map, keyPredicate, valuePredicate);
    } 
 
    public SortedMap<K, V> tailMap(K fromKey) {
        SortedMap<K, V> map = getSortedMap().tailMap(fromKey);
Connect your IDE to all the code out there  Get Codota for Java