Code example for NavigableMap

Methods: ceilingEntry, lowerEntry

0
	} 
 
	public V get(K key) {
		lock.lock();
		try { 
			Map.Entry<K, Value<V>> start = map.lowerEntry(key);
			Map.Entry<K, Value<V>> end = map.ceilingEntry(key);
			if (start == null || end == null) {
				return null; 
			} 
			return end.getValue().get();
		} finally { 
			lock.unlock();
		} 
	} 
	 
	public void removeIfExpired(K key) {
		lock.lock();
		try { 
			Map.Entry<K, Value<V>> end = map.ceilingEntry(key);
			if (end != null) {