public abstract class TestCustomMetaData extends AbstractNamedDiffable<MetaData.Custom> implements MetaData.Custom
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
TestCustomMetaData(java.lang.String data) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static <T extends MetaData.Custom> |
fromXContent(java.util.function.Function<java.lang.String,MetaData.Custom> supplier,
XContentParser parser) |
java.lang.String |
getData() |
int |
hashCode() |
static NamedDiff<MetaData.Custom> |
readDiffFrom(java.lang.String name,
StreamInput in) |
protected static <T extends TestCustomMetaData> |
readFrom(java.util.function.Function<java.lang.String,T> supplier,
StreamInput in) |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
diff, get, readDiffFrom
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
context
getMinimalSupportedVersion
getWriteableName
isFragment
public java.lang.String getData()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected static <T extends TestCustomMetaData> T readFrom(java.util.function.Function<java.lang.String,T> supplier, StreamInput in) throws java.io.IOException
java.io.IOException
public static NamedDiff<MetaData.Custom> readDiffFrom(java.lang.String name, StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
public static <T extends MetaData.Custom> T fromXContent(java.util.function.Function<java.lang.String,MetaData.Custom> supplier, XContentParser parser) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object