@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ReplyIF"}) @Immutable public final class Reply extends Object implements ReplyIF
ReplyIF.
Use the builder to create immutable instances:
Reply.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Reply.Builder
Builds instances of type
Reply. |
| Modifier and Type | Method and Description |
|---|---|
static Reply.Builder |
builder()
Creates a builder for
Reply. |
static Reply |
copyOf(ReplyIF instance)
Creates an immutable copy of a
ReplyIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Reply that have equal attribute values. |
String |
getTs() |
String |
getUser() |
int |
hashCode()
Computes a hash code from attributes:
user, ts. |
String |
toString()
Prints the immutable value
Reply with attribute values. |
Reply |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
Reply |
withUser(String user)
Copy the current immutable object by setting a value for the
user attribute. |
public String getUser()
public String getTs()
public final Reply withUser(String user)
user attribute.
An equals check used to prevent copying of the same value by returning this.user - A new value for userthis objectpublic final Reply withTs(String ts)
ts attribute.
An equals check used to prevent copying of the same value by returning this.ts - A new value for tsthis objectpublic boolean equals(@Nullable Object another)
Reply that have equal attribute values.public int hashCode()
user, ts.public String toString()
Reply with attribute values.public static Reply copyOf(ReplyIF instance)
ReplyIF 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 Reply.Builder builder()
Reply.Copyright © 2019. All rights reserved.