Class NameValuePair

java.lang.Object
oracle.stellent.ridc.common.util.NameValuePair
All Implemented Interfaces:
Comparable<NameValuePair>
Direct Known Subclasses:
RIDCHttpHeaderImpl

@Exported public class NameValuePair extends Object implements Comparable<NameValuePair>
Generic Name value pairing
  • Constructor Details

    • NameValuePair

      public NameValuePair(String name, String value)
      Create a name/value pair
      Parameters:
      name -
      value -
  • Method Details

    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getValue

      public String getValue()
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Parameters:
      value - the value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(NameValuePair namevaluePair)
      Compare two name value pairs by the key. It is a basic string comparison of the keys
      Specified by:
      compareTo in interface Comparable<NameValuePair>
      Parameters:
      namevaluePair -
      Returns: