@Generated(value={"Immutables.generator","SMFMetadataType"}) public final class SMFMetadata extends Object implements SMFMetadataType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFMetadata.Builder
Builds instances of type
SMFMetadata. |
| Modifier and Type | Method and Description |
|---|---|
static SMFMetadata.Builder |
builder()
Creates a builder for
SMFMetadata. |
static SMFMetadata |
copyOf(SMFMetadataType instance)
Creates an immutable copy of a
SMFMetadataType value. |
byte[] |
data() |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFMetadata that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
schema, data. |
static SMFMetadata |
of(SMFSchemaIdentifier schema,
byte[] data)
Construct a new immutable
SMFMetadata instance. |
SMFSchemaIdentifier |
schema() |
String |
toString()
Prints the immutable value
SMFMetadata with attribute values. |
SMFMetadata |
withData(byte... elements)
Copy the current immutable object with elements that replace the content of
data. |
SMFMetadata |
withSchema(SMFSchemaIdentifier value)
Copy the current immutable object by setting a value for the
schema attribute. |
public SMFSchemaIdentifier schema()
schema in interface SMFMetadataTypepublic byte[] data()
data in interface SMFMetadataTypepublic final SMFMetadata withSchema(SMFSchemaIdentifier value)
schema attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for schemathis objectpublic final SMFMetadata withData(byte... elements)
data.
The array is cloned before being saved as attribute values.elements - The non-null elements for datathis objectpublic boolean equals(Object another)
SMFMetadata that have equal attribute values.public int hashCode()
schema, data.public String toString()
SMFMetadata with attribute values.public static SMFMetadata of(SMFSchemaIdentifier schema, byte[] data)
SMFMetadata instance.schema - The value for the schema attributedata - The value for the data attributepublic static SMFMetadata copyOf(SMFMetadataType instance)
SMFMetadataType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SMFMetadata.Builder builder()
SMFMetadata.Copyright © 2017 <code@io7m.com> http://io7m.com