Class AssocArray.Pair

java.lang.Object
com.portal.pcm.AssocArray.Pair
Enclosing class:
AssocArray

public class AssocArray.Pair extends Object
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 Details

    • key

      public Object 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

      public 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.