Class ImmutableLocationResponse
java.lang.Object
com.iland.core.web.rest.response.location.ImmutableLocationResponse
- All Implemented Interfaces:
LocationResponse
@Generated(from="LocationResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableLocationResponse
extends Object
implements LocationResponse
Immutable implementation of
LocationResponse.
Use the builder to create immutable instances:
ImmutableLocationResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableLocationResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableLocationResponse.static ImmutableLocationResponsecopyOf(LocationResponse instance) Creates an immutable copy of aLocationResponsevalue.booleanThis instance is equal to all instances ofImmutableLocationResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:locationId.Get the location id.toString()Prints the immutable valueLocationResponsewith attribute values.withLocationId(String value) Copy the current immutable object by setting a value for thelocationIdattribute.
-
Method Details
-
locationId
Get the location id.- Specified by:
locationIdin interfaceLocationResponse- Returns:
Stringlocation id
-
withLocationId
Copy the current immutable object by setting a value for thelocationIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for locationId- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableLocationResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:locationId. -
toString
Prints the immutable valueLocationResponsewith attribute values. -
copyOf
Creates an immutable copy of aLocationResponsevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable LocationResponse instance
-
builder
Creates a builder forImmutableLocationResponse.ImmutableLocationResponse.builder() .locationId(String) // requiredlocationId.build();- Returns:
- A new ImmutableLocationResponse builder
-