Skip navigation links
com.auxiliary.tool.common

Class Entry<K,V>

    • Constructor Detail

      • Entry

        public Entry(K key,
                     V value)
        构造对象,并初始化键值对
        Parameters:
        key - 键
        value - 值
        Since:
        autest 3.3.0
    • Method Detail

      • getValue

        public V getValue()
        该方法用于返回值中存储的内容
        Returns:
        Since:
        autest 3.3.0
      • getOptionValue

        public Optional<V> getOptionValue()
        该方法用于返回值的封装类对象
        Returns:
        值的封装类对象
        Since:
        autest 3.3.0
      • setValue

        public void setValue(V value)
        该方法用于设置值的内容
        Parameters:
        value - 值
        Since:
        autest 3.3.0
      • getKey

        public K getKey()
        该方法用于返回键中存储的内容
        Returns:
        Since:
        autest 3.3.0
      • getOptionalKey

        public Optional<K> getOptionalKey()
        该方法用于返回键的封装类对象
        Returns:
        键的封装类对象
        Since:
        autest 3.3.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object

Copyright © 2024. All rights reserved.