Namespace: OpenEdge.Core
Type: Class KeyValuePair
Parent Classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object


Copyright (c) 2018, 2021 by Progress Software Corporation. All rights reserved.
File:KeyValuePair
Purpose:Holds a key and value tuple/pair
Author(s):pjudge
Created:2017-08-30
Notes:* these are untyped values



Method Summary
  Options Name Purpose
  LOGICAL Equals (Object) /* Compares an input object to this instance Objects are equal if - they are the same instance, OR - they are both of type KeyValuePair AND the Key and Value values are equal @param P.L.Object An object to compare @return logical TRUE if the input object matchs this object */

Constructor Summary
  Options Name Purpose
  KeyValuePair () /* Default coonstructor. Private since we don't want to allow an object without a key */
  KeyValuePair (character) /* Constructor @param character A key value */
  KeyValuePair (character, longchar) /* Constructor @param character A String key value @param longchar A value associated with the key */
  KeyValuePair (character, Object) /* Constructor @param character A String key value @param P.L.Object A value associated with the key */
  KeyValuePair (Object) /* Constructor @param P.L.Object A key value */
  KeyValuePair (Object, Object) /* Constructor @param P.L.Object A key value @param P.L.Object A value associated with the key */

Property Summary
  Options Name Purpose
  Progress.Lang.Object Key
  Progress.Lang.Object Value


Method Detail
Top

LOGICAL Equals (Object)

/* Compares an input object to this instance
Objects are equal if
- they are the same instance, OR
- they are both of type KeyValuePair AND
the Key and Value values are equal
Parameters:
o Progress.Lang.Object
 
Returns LOGICAL
  logical TRUE if the input object matchs this object


Constructor Detail
Top

KeyValuePair ()

/* Default coonstructor.
Private since we don't want to allow an object without a key
Top

KeyValuePair (character)

/* Constructor
Parameters:
pKey CHARACTER
 
Top

KeyValuePair (character, longchar)

/* Constructor
Parameters:
pcKey CHARACTER
 
pValue LONGCHAR
 
Top

KeyValuePair (character, Object)

/* Constructor
Parameters:
pcKey CHARACTER
 
pValue Progress.Lang.Object
 
Top

KeyValuePair (Object)

/* Constructor
Parameters:
pKey Progress.Lang.Object
 
Top

KeyValuePair (Object, Object)

/* Constructor
Parameters:
pKey Progress.Lang.Object
 
pValue Progress.Lang.Object
 


Property Detail
Top

Progress.Lang.Object Key

Returns Progress.Lang.Object
 
Top

Progress.Lang.Object Value

Returns Progress.Lang.Object