Code example for NavigableMap

Methods: values

0
    return new SafeTreeMap<K, V>( 
        delegate.tailMap(checkValid(fromKey), inclusive));
  } 
 
  @Override public Collection<V> values() {
    return delegate.values();
  } 
 
  private <T> T checkValid(T t) {
    // a ClassCastException is what's supposed to happen! 
    @SuppressWarnings("unchecked") 
    K k = (K) t;
    comparator().compare(k, k);
    return t;
  } 
 
  @Override public boolean equals(Object obj) {
    return delegate.equals(obj);
  }