public static class SimpleIsochrone.MinMap<K,V extends Comparable<V>> extends HashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MinMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
putMax(K key,
V value)
Put the given key-value pair in the map if the map does not yet contain the key, or if
the value is greater than the existing value for the same key.
|
boolean |
putMin(K key,
V value)
Put the given key-value pair in the map if the map does not yet contain the key, or if
the value is less than the existing value for the same key.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
Copyright © 2018. All rights reserved.