| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
hasKey() |
boolean |
hasValue() |
<N> PairEntry<N,V> |
mapKey(Function<K,N> keyMapper) |
<N> PairEntry<K,N> |
mapValue(Function<V,N> valueMapper) |
boolean |
nonKey() |
boolean |
nonValue() |
static <K,V> PairEntry<K,V> |
of(K key,
V val) |
void |
peekKey(Consumer<K> consumer) |
void |
peekValue(Consumer<V> consumer) |
V |
setValue(V value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, getKey, getValue, hashCodepublic boolean nonKey()
public boolean hasKey()
public boolean nonValue()
public boolean hasValue()
public static <K,V> PairEntry<K,V> of(K key, V val)
Copyright © 2022. All rights reserved.