com.sunlightlabs.entities
Class NameValuePair

java.lang.Object
  extended by com.sunlightlabs.entities.NameValuePair

public class NameValuePair
extends java.lang.Object

Object representing an immutable name-value pair com.sunlightlabs.entities.NameValuePair steve Jul 22, 2009


Field Summary
static NameValuePair[] EMPTY_ARRAY
           
static java.lang.Class<NameValuePair> THIS_CLASS
           
 
Constructor Summary
NameValuePair(java.lang.String name, java.lang.String value)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          probably non-null name
 java.lang.String getValue()
          probably non-null value
 int hashCode()
          so this can be used as a hash key
 java.lang.String toString()
          so this can be used as a hash key
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

THIS_CLASS

public static java.lang.Class<NameValuePair> THIS_CLASS

EMPTY_ARRAY

public static NameValuePair[] EMPTY_ARRAY
Constructor Detail

NameValuePair

public NameValuePair(java.lang.String name,
                     java.lang.String value)
Method Detail

getName

public java.lang.String getName()
probably non-null name

Returns:
probably non-null name

getValue

public java.lang.String getValue()
probably non-null value

Returns:
probably non-null value

hashCode

public int hashCode()
so this can be used as a hash key

Overrides:
hashCode in class java.lang.Object

equals

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

toString

public java.lang.String toString()
so this can be used as a hash key

Overrides:
toString in class java.lang.Object