javawebparts.core
Class CaseInsensitiveMap.KeyAndValue

java.lang.Object
  |
  +--javawebparts.core.CaseInsensitiveMap.KeyAndValue
Enclosing class:
CaseInsensitiveMap

private static class CaseInsensitiveMap.KeyAndValue
extends java.lang.Object

Inner class used to store a key-value pair. When a key and value are passed to this Map, we store the lowercased key in an internal Map, to have the case-insensitive behaviour. However, we will need the original key (original casing) as well, so in the value of the internal Map we store a KeyAndValue object, that has the original key and the value.


Field Summary
private  java.lang.Object key
           
private  java.lang.Object value
           
 
Constructor Summary
CaseInsensitiveMap.KeyAndValue(java.lang.Object inKey, java.lang.Object inValue)
          Creates a new KeyAndValue objects using the passed in key and value.
 
Method Summary
 java.lang.Object getKey()
          Returns the key.
 java.lang.Object getValue()
          Returns the value.
 void setValue(java.lang.Object newValue)
          Set the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private java.lang.Object key

value

private java.lang.Object value
Constructor Detail

CaseInsensitiveMap.KeyAndValue

public CaseInsensitiveMap.KeyAndValue(java.lang.Object inKey,
                                      java.lang.Object inValue)
Creates a new KeyAndValue objects using the passed in key and value.

Parameters:
inKey - the key to be used.
inValue - the value to be used.
Method Detail

getKey

public java.lang.Object getKey()
Returns the key.

Returns:
the key.

getValue

public java.lang.Object getValue()
Returns the value.

Returns:
the value.

setValue

public void setValue(java.lang.Object newValue)
Set the value.

Parameters:
newValue - the value to be set.


Copyright © 2005 Frank W. Zammetti