Interface KVNamespace.Entry

All Superinterfaces:
org.teavm.jso.JSObject
Enclosing interface:
KVNamespace

public static interface KVNamespace.Entry extends org.teavm.jso.JSObject
A value and the metadata stored with it.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the metadata, or null when none was stored.
    org.teavm.jso.core.JSString
    Returns the value, or null when the key is absent.
    default String
    Returns the value as a Java string, or null.

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • getValue

      org.teavm.jso.core.JSString getValue()
      Returns the value, or null when the key is absent.
      Returns:
      the value, or null when the key is absent
    • getMetadata

      TSObject getMetadata()
      Returns the metadata, or null when none was stored.
      Returns:
      the metadata, or null when none was stored
    • value

      default String value()
      Returns the value as a Java string, or null.
      Returns:
      the value as a Java string, or null