|
1 | 1 | # java8-map-functions
|
| 2 | + |
| 3 | +* public static <K extends Comparable<? super K>, V> Comparator<Map.Entry<K, V>> comparingByKey() |
| 4 | +* public static <K, V extends Comparable<? super V>> Comparator<Map.Entry<K, V>> comparingByValue() |
| 5 | +* public static <K, V> Comparator<Map.Entry<K, V>> comparingByKey(Comparator<? super K> cmp) |
| 6 | +* public static <K, V> Comparator<Map.Entry<K, V>> comparingByValue(Comparator<? super V> cmp) |
| 7 | +* default V getOrDefault(Object key, V defaultValue) |
| 8 | +* default void forEach(BiConsumer<? super K, ? super V> action) |
| 9 | +* default void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) |
| 10 | +* default V putIfAbsent(K key, V value) |
| 11 | +* default boolean remove(Object key, Object value) |
| 12 | +* default boolean replace(K key, V oldValue, V newValue) |
| 13 | +* default V replace(K key, V value) |
| 14 | +* default V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) |
| 15 | +* default V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) |
| 16 | +* default V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) |
| 17 | +* default V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) |
0 commit comments