java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<KeyValuePair<K,,V>> Collection<KeyValuePair<K,,V>> Deque<KeyValuePair<K,,V>> List<KeyValuePair<K,,V>> Queue<KeyValuePair<K,V>>
键值对列表
- Author:
- qiushui on 2018-11-03.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyValue(K key, V value) 添加键值对allKey()获取所有键allValue()获取所有值static <K,V> KeyValuePairs<K, V> 从Map转化static <K,V> KeyValuePairs<K, V> of(KeyValuePair<K, V>... keyValuePairArray) 带值初始化static <K,V> KeyValuePairs<K, V> of(Collection<KeyValuePair<K, V>> keyValuePairCollection) 带值初始化toMap()转化成Map形式Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSequentialList
iteratorMethods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
KeyValuePairs
public KeyValuePairs()
-
-
Method Details
-
addKeyValue
添加键值对 -
allKey
获取所有键 -
allValue
获取所有值 -
toMap
转化成Map形式 -
fromMap
从Map转化 -
of
带值初始化 -
of
带值初始化
-