Class KeyValuePair<T>

  • All Implemented Interfaces:
    org.apache.commons.collections.KeyValue

    public class KeyValuePair<T>
    extends org.apache.commons.collections.keyvalue.DefaultKeyValue
    Author:
    Vladimir Nikic Date: Jul 2, 2007
    • Field Summary

      • Fields inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue

        key, value
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValuePair​(String key, T value)  
    • Constructor Detail

      • KeyValuePair

        public KeyValuePair​(String key,
                            T value)
    • Method Detail

      • getKey

        public String getKey()
        Specified by:
        getKey in interface org.apache.commons.collections.KeyValue
        Overrides:
        getKey in class org.apache.commons.collections.keyvalue.AbstractKeyValue
      • getValue

        public T getValue()
        Specified by:
        getValue in interface org.apache.commons.collections.KeyValue
        Overrides:
        getValue in class org.apache.commons.collections.keyvalue.AbstractKeyValue