Code example for NavigableMap

Methods: values

    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! 
    K k = (K) t;
    comparator().compare(k, k);
    return t;
  @Override public boolean equals(Object obj) {
    return delegate.equals(obj);
Connect your IDE to all the code out there  Get Codota for Java