类 KeyValuePairs<K,​V>

    • 构造器详细资料

      • KeyValuePairs

        public KeyValuePairs()
    • 方法详细资料

      • addKeyValue

        public void addKeyValue​(K key,
                                V value)
        添加键值对
        参数:
        key -
        value -
      • allKey

        public List<K> allKey()
        获取所有键
        返回:
      • allValue

        public List<V> allValue()
        获取所有值
        返回:
      • toMap

        public Map<K,​V> toMap()
        转化成Map形式
        返回:
      • fromMap

        public static <K,​V> KeyValuePairs<K,​V> fromMap​(Map<K,​V> map)
        从Map转化
        类型参数:
        K -
        V -
        参数:
        map -
        返回:
      • of

        @SafeVarargs
        public static <K,​V> KeyValuePairs<K,​V> of​(KeyValuePair<K,​V>... keyValuePairArray)
        带值初始化
        类型参数:
        K -
        V -
        参数:
        keyValuePairArray -
        返回: