Project Wonder 5.0

er.extensions.foundation
Class ERXKeyValuePair<K,V>

java.lang.Object
  extended by er.extensions.foundation.ERXKeyValuePair<K,V>
Type Parameters:
K - the key type
V - the value type

public class ERXKeyValuePair<K,V>
extends java.lang.Object

Very simple class used for hold key-value pairs.


Field Summary
protected  K _key
          holds the key
protected  V _value
          holds the value
 
Constructor Summary
ERXKeyValuePair(K newKey, V newValue)
          Public constructor
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 K key()
          returns the key
 void setKey(K newKey)
          Sets the key.
 void setValue(V value)
          Sets the value
 java.lang.String toString()
           
 V value()
          returns the value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_key

protected K _key
holds the key


_value

protected V _value
holds the value

Constructor Detail

ERXKeyValuePair

public ERXKeyValuePair(K newKey,
                       V newValue)
Public constructor

Parameters:
newKey - key
newValue - value
Method Detail

setKey

public void setKey(K newKey)
Sets the key.

Parameters:
newKey - new key value

key

public K key()
returns the key

Returns:
da key

setValue

public void setValue(V value)
Sets the value

Parameters:
value - new value

value

public V value()
returns the value

Returns:
da value

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.