@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAddress extends Address
Address.
Use the builder to create immutable instances:
ImmutableAddress.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAddress.Builder
Builds instances of type
ImmutableAddress. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAddress.Builder |
builder()
Creates a builder for
ImmutableAddress. |
static ImmutableAddress |
copyOf(Address instance)
Creates an immutable copy of a
Address value. |
boolean |
equals(java.lang.Object another)
This instance is equal to all instances of
ImmutableAddress that have equal attribute values. |
java.lang.String |
getCity() |
java.time.ZonedDateTime |
getCreated() |
java.lang.String |
getId() |
java.lang.String |
getPostalCode() |
java.lang.String |
getState() |
java.lang.String |
getStreet() |
java.time.ZonedDateTime |
getUpdated() |
int |
hashCode()
Computes a hash code from attributes:
city, postalCode, state, street, created, id, updated. |
java.lang.String |
toString()
Prints the immutable value
Address with attribute values. |
ImmutableAddress |
withCity(java.lang.String value)
Copy the current immutable object by setting a value for the
city attribute. |
ImmutableAddress |
withCreated(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for the
created attribute. |
ImmutableAddress |
withId(java.lang.String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableAddress |
withPostalCode(java.lang.String value)
Copy the current immutable object by setting a value for the
postalCode attribute. |
ImmutableAddress |
withState(java.lang.String value)
Copy the current immutable object by setting a value for the
state attribute. |
ImmutableAddress |
withStreet(java.lang.String value)
Copy the current immutable object by setting a value for the
street attribute. |
ImmutableAddress |
withUpdated(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for the
updated attribute. |
compareTopublic java.lang.String getCity()
public java.lang.String getPostalCode()
getPostalCode in class AddresspostalCode attributepublic java.lang.String getState()
public java.lang.String getStreet()
public java.time.ZonedDateTime getCreated()
getCreated in interface com.arakelian.store.feature.HasTimestampgetCreated in class AbstractModelcreated attributepublic java.lang.String getId()
getId in interface com.arakelian.store.feature.HasIdgetId in class AbstractModelid attributepublic java.time.ZonedDateTime getUpdated()
getUpdated in interface com.arakelian.store.feature.HasTimestampgetUpdated in class AbstractModelupdated attributepublic final ImmutableAddress withCity(java.lang.String value)
city attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for citythis objectpublic final ImmutableAddress withPostalCode(java.lang.String value)
postalCode attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for postalCodethis objectpublic final ImmutableAddress withState(java.lang.String value)
state attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for statethis objectpublic final ImmutableAddress withStreet(java.lang.String value)
street attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for streetthis objectpublic final ImmutableAddress withCreated(java.time.ZonedDateTime value)
created attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for createdthis objectpublic final ImmutableAddress withId(java.lang.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 final ImmutableAddress withUpdated(java.time.ZonedDateTime value)
updated attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for updatedthis objectpublic boolean equals(@Nullable
java.lang.Object another)
ImmutableAddress that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
city, postalCode, state, street, created, id, updated.hashCode in class java.lang.Objectpublic java.lang.String toString()
Address with attribute values.toString in class java.lang.Objectpublic static ImmutableAddress copyOf(Address instance)
Address 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 ImmutableAddress.Builder builder()
ImmutableAddress.