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