Package com.portal.pcm
Class AssocArray.Pair
java.lang.Object
com.portal.pcm.AssocArray.Pair
- Enclosing class:
AssocArray
Represents a pair of objects, often used to store two related values.
This class provides a simple way to encapsulate a key-value pair where both
the key and value are of type
Object
.
The Pair
class is a generic container for holding two objects.
It provides methods to access and modify these objects.
-
Method Summary
-
Method Details
-
key
Returns the key associated with this object.This method provides access to the key value held by this instance.
- Returns:
- The key associated with this object.
-
value
Returns the value associated with this object.This method provides access to the value held by this instance.
- Returns:
- The value associated with this object.
-