Class Attributes.Attribute
java.lang.Object
org.springframework.restdocs.snippet.Attributes.Attribute
- Enclosing class:
- Attributes
An attribute (key-value pair).
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Attribute
Creates a new attribute with the givenkey
andvalue
.- Parameters:
key
- the keyvalue
- the value
-
-
Method Details
-
getKey
Returns the attribute's key.- Returns:
- the key
-
getValue
Returns the attribute's value.- Returns:
- the value
-