@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableLocationResponse extends Object implements LocationResponse
LocationResponse
.
Use the builder to create immutable instances:
ImmutableLocationResponse.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableLocationResponse.Builder
Builds instances of type
ImmutableLocationResponse . |
Modifier and Type | Method and Description |
---|---|
static ImmutableLocationResponse.Builder |
builder()
Creates a builder for
ImmutableLocationResponse . |
static ImmutableLocationResponse |
copyOf(LocationResponse instance)
Creates an immutable copy of a
LocationResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLocationResponse that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
locationId . |
String |
locationId()
Get the location id.
|
String |
toString()
Prints the immutable value
LocationResponse with attribute values. |
ImmutableLocationResponse |
withLocationId(String value)
Copy the current immutable object by setting a value for the
locationId attribute. |
public String locationId()
locationId
in interface LocationResponse
String
location idpublic final ImmutableLocationResponse withLocationId(String value)
locationId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for locationIdthis
objectpublic boolean equals(@Nullable Object another)
ImmutableLocationResponse
that have equal attribute values.public int hashCode()
locationId
.public String toString()
LocationResponse
with attribute values.public static ImmutableLocationResponse copyOf(LocationResponse instance)
LocationResponse
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 ImmutableLocationResponse.Builder builder()
ImmutableLocationResponse
.
ImmutableLocationResponse.builder()
.locationId(String) // required locationId
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.