@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChannelMetadataIF"}) @Immutable public final class ChannelMetadata extends Object implements ChannelMetadataIF
ChannelMetadataIF.
Use the builder to create immutable instances:
ChannelMetadata.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelMetadata.Builder
Builds instances of type
ChannelMetadata. |
| Modifier and Type | Method and Description |
|---|---|
static ChannelMetadata.Builder |
builder()
Creates a builder for
ChannelMetadata. |
static ChannelMetadata |
copyOf(ChannelMetadataIF instance)
Creates an immutable copy of a
ChannelMetadataIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChannelMetadata that have equal attribute values. |
String |
getCreatorId() |
long |
getLastSetEpochSeconds() |
String |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
value, creatorId, lastSetEpochSeconds. |
String |
toString()
Prints the immutable value
ChannelMetadata with attribute values. |
ChannelMetadata |
withCreatorId(String creatorId)
Copy the current immutable object by setting a value for the
creatorId attribute. |
ChannelMetadata |
withLastSetEpochSeconds(long lastSetEpochSeconds)
Copy the current immutable object by setting a value for the
lastSetEpochSeconds attribute. |
ChannelMetadata |
withValue(String value)
Copy the current immutable object by setting a value for the
value attribute. |
public String getValue()
getValue in interface ChannelMetadataIFvalue attributepublic String getCreatorId()
getCreatorId in interface ChannelMetadataIFcreatorId attributepublic long getLastSetEpochSeconds()
getLastSetEpochSeconds in interface ChannelMetadataIFlastSetEpochSeconds attributepublic final ChannelMetadata withValue(String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic final ChannelMetadata withCreatorId(String creatorId)
creatorId attribute.
An equals check used to prevent copying of the same value by returning this.creatorId - A new value for creatorIdthis objectpublic final ChannelMetadata withLastSetEpochSeconds(long lastSetEpochSeconds)
lastSetEpochSeconds attribute.
A value equality check is used to prevent copying of the same value by returning this.lastSetEpochSeconds - A new value for lastSetEpochSecondsthis objectpublic boolean equals(@Nullable Object another)
ChannelMetadata that have equal attribute values.public int hashCode()
value, creatorId, lastSetEpochSeconds.public String toString()
ChannelMetadata with attribute values.public static ChannelMetadata copyOf(ChannelMetadataIF instance)
ChannelMetadataIF 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 ChannelMetadata.Builder builder()
ChannelMetadata.Copyright © 2019. All rights reserved.