Class KeyValuePair


  • public class KeyValuePair
    extends java.lang.Object
    A pair of Strings, one a key, and one a value.
    Since:
    Ptolemy II 6.1
    Version:
    $Id$
    Author:
    Adam Cataldo
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValuePair​(java.lang.String key, java.lang.String value)
      Create a new KeyValuePair with the given key and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKey()
      The key of this KeyValuePair.
      java.lang.String getValue()
      The value of this KeyValuePair.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyValuePair

        public KeyValuePair​(java.lang.String key,
                            java.lang.String value)
        Create a new KeyValuePair with the given key and value.
        Parameters:
        key - The key.
        value - The value.
    • Method Detail

      • getKey

        public java.lang.String getKey()
        The key of this KeyValuePair.
        Returns:
        The key of this KeyValuePair.
      • getValue

        public java.lang.String getValue()
        The value of this KeyValuePair.
        Returns:
        The value of this KeyValuePair.