Interface Tag

All Superinterfaces:
Wrapper, Wrapper

public interface Tag extends Wrapper
Behavior of a tag for further identifying meters.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Tag
    create(String key, String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    key()
    Returns the tag's key.
    Returns the tag's value.

    Methods inherited from interface Wrapper

    unwrap
    Modifier and Type
    Method
    Description
    <T> T
    unwrap(Class<? extends T> type)
    Unwraps the delegate as the specified type.
  • Method Details

    • create

      @Deprecated(forRemoval=true, since="27.0.0") static Tag create(String key, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new tag using the specified key and value.
      Parameters:
      key - the tag's key
      value - the tag's value
      Returns:
      new Tag representing the key and value
    • key

      String key()
      Returns the tag's key.
      Returns:
      the tag's key
    • value

      String value()
      Returns the tag's value.
      Returns:
      the tag's value