Class Attributes.Attribute

java.lang.Object
org.springframework.restdocs.snippet.Attributes.Attribute
Enclosing class:
Attributes

public static final class Attributes.Attribute extends Object
An attribute (key-value pair).
  • Constructor Details

    • Attribute

      public Attribute(String key, Object value)
      Creates a new attribute with the given key and value.
      Parameters:
      key - the key
      value - the value
  • Method Details

    • getKey

      public String getKey()
      Returns the attribute's key.
      Returns:
      the key
    • getValue

      public Object getValue()
      Returns the attribute's value.
      Returns:
      the value