Skip to content

Commit 21d77f4

Browse files
committed
doc update
1 parent 8929eac commit 21d77f4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
# 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

Comments
 (0)