net.wotonomy.foundation.internal
Class QueueMap.KeyValuePair

java.lang.Object
  extended by net.wotonomy.foundation.internal.QueueMap.KeyValuePair
All Implemented Interfaces:
java.util.Map.Entry
Enclosing class:
QueueMap

public static class QueueMap.KeyValuePair
extends java.lang.Object
implements java.util.Map.Entry

This class contains a key/value pair. The key must be a valid object, it cannot be null. The value can be a valid object or null.


Constructor Summary
QueueMap.KeyValuePair(java.lang.Object aKey, java.lang.Object aValue)
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getKey()
          Returns the key object of this pair.
 java.lang.Object getValue()
          Returns the the value object of this pair.
 java.lang.Object setValue(java.lang.Object aValue)
          Sets the value object of this pair.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
hashCode
 

Constructor Detail

QueueMap.KeyValuePair

public QueueMap.KeyValuePair(java.lang.Object aKey,
                             java.lang.Object aValue)
Default constructor. The constructor takes the key and value as parameters. Since the key cannot be null, it must be specified during initialization. The value can be null.

Parameters:
key - The key object of this pair. The key cannot be null.
value - The value object of this pair. The value can be null.
Method Detail

getKey

public java.lang.Object getKey()
Returns the key object of this pair.

Specified by:
getKey in interface java.util.Map.Entry
Returns:
The key object.

getValue

public java.lang.Object getValue()
Returns the the value object of this pair. May be null.

Specified by:
getValue in interface java.util.Map.Entry
Returns:
The value object.

setValue

public java.lang.Object setValue(java.lang.Object aValue)
Sets the value object of this pair. May be an object or null.

Specified by:
setValue in interface java.util.Map.Entry
Parameters:
aValue - The value object to place into this pair.

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map.Entry
Overrides:
equals in class java.lang.Object


Copyright © 2006 null. All Rights Reserved.