Class BaseDocument.Entry

  • Enclosing class:
    BaseDocument

    public static class BaseDocument.Entry
    extends java.lang.Object
    Represents a key-value pair in the document.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(java.lang.String key, java.lang.Object value)
      Initializes an entry with a specified key and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKey()
      Gets the key of this entry.
      java.lang.Object getValue()
      Gets the value associated with this entry's key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Entry

        public Entry​(java.lang.String key,
                     java.lang.Object value)
        Initializes an entry with a specified key and value.
        Parameters:
        key - The key for the entry.
        value - The value associated with the key.
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Gets the key of this entry.
        Returns:
        The key as a String.
      • getValue

        public java.lang.Object getValue()
        Gets the value associated with this entry's key.
        Returns:
        The value as an Object.