Class KeyValueWrapper

java.lang.Object
com.github.eventmanager.formatters.KeyValueWrapper

public class KeyValueWrapper extends Object
The KeyValueWrapper class is a simple data structure that holds a key-value pair. It provides methods to retrieve the key and value, and to represent the key-value pair as a string.
  • Constructor Details

    • KeyValueWrapper

      public KeyValueWrapper(String key, String value)
      Constructs a KeyValueWrapper with the specified key and value.
      Parameters:
      key - the key of the key-value pair.
      value - the value of the key-value pair.
  • Method Details

    • toString

      public String toString()
      Returns a string representation of the key-value pair in the format key="value".
      Overrides:
      toString in class Object
      Returns:
      the string representation of the key-value pair.