Code example for SortedMap

Methods: headMap

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