@API(status=STABLE) public final class DocString extends Object
"""application/json
{
"hello": "world"
}
"""
A doc string is either empty or contains some content. The content type is an optional description of the content using a media-type.
A DocString is immutable and thread safe.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DocString.DocStringConverter |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Type type) |
static DocString |
create(String content) |
static DocString |
create(String content,
String contentType) |
static DocString |
create(String content,
String contentType,
DocString.DocStringConverter converter) |
boolean |
equals(Object o) |
String |
getContent() |
String |
getContentType() |
int |
hashCode() |
String |
toString() |
Copyright © 2020. All rights reserved.