com.go.teaservlet.util
Class NameValuePair

java.lang.Object
  |
  +--com.go.teaservlet.util.NameValuePair
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
ApplicationInfo, FunctionInfo

public class NameValuePair
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Version:
12 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Constructor Summary
NameValuePair(java.util.Map.Entry entry)
           
NameValuePair(java.lang.String name, java.lang.Object value)
           
 
Method Summary
 int compareTo(java.lang.Object other)
          Comparison is based on case-insensitive ordering of "name".
 boolean equals(java.lang.Object other)
           
 java.lang.String getName()
           
 java.lang.Object getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameValuePair

public NameValuePair(java.lang.String name,
                     java.lang.Object value)

NameValuePair

public NameValuePair(java.util.Map.Entry entry)
Method Detail

getName

public final java.lang.String getName()

getValue

public final java.lang.Object getValue()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object other)
Comparison is based on case-insensitive ordering of "name".
Specified by:
compareTo in interface java.lang.Comparable