@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePerson extends Person
Person.
Use the builder to create immutable instances:
ImmutablePerson.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePerson.Builder
Builds instances of type
ImmutablePerson. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePerson.Builder |
builder()
Creates a builder for
ImmutablePerson. |
static ImmutablePerson |
copyOf(Person instance)
Creates an immutable copy of a
Person value. |
java.lang.Integer |
getAge() |
java.time.ZonedDateTime |
getBirthdate() |
java.lang.String |
getComments() |
java.time.ZonedDateTime |
getCreated() |
java.lang.String |
getFirstName() |
Gender |
getGender() |
java.lang.String |
getId() |
java.lang.String |
getLastName() |
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.String |
getTitle() |
java.time.ZonedDateTime |
getUpdated() |
java.lang.String |
toString()
Prints the immutable value
Person with attribute values. |
ImmutablePerson |
withAge(java.lang.Integer value)
Copy the current immutable object by setting a value for the
age attribute. |
ImmutablePerson |
withBirthdate(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for the
birthdate attribute. |
ImmutablePerson |
withComments(java.lang.String value)
Copy the current immutable object by setting a value for the
comments attribute. |
ImmutablePerson |
withCreated(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for the
created attribute. |
ImmutablePerson |
withFirstName(java.lang.String value)
Copy the current immutable object by setting a value for the
firstName attribute. |
ImmutablePerson |
withGender(Gender value)
Copy the current immutable object by setting a value for the
gender attribute. |
ImmutablePerson |
withId(java.lang.String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutablePerson |
withLastName(java.lang.String value)
Copy the current immutable object by setting a value for the
lastName attribute. |
ImmutablePerson |
withProperties(java.util.Map<java.lang.String,? extends java.lang.Object> entries)
Copy the current immutable object by replacing the
properties map with the specified map. |
ImmutablePerson |
withTitle(java.lang.String value)
Copy the current immutable object by setting a value for the
title attribute. |
ImmutablePerson |
withUpdated(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for the
updated attribute. |
compareTopublic java.lang.Integer getAge()
public java.time.ZonedDateTime getBirthdate()
getBirthdate in class Personbirthdate attributepublic java.lang.String getComments()
getComments in class Personcomments attributepublic java.lang.String getFirstName()
getFirstName in class PersonfirstName attributepublic Gender getGender()
public java.lang.String getLastName()
getLastName in class PersonlastName attributepublic com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> getProperties()
getProperties in class Personproperties attributepublic java.lang.String getTitle()
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 ImmutablePerson withAge(java.lang.Integer value)
age attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for age (can be null)this objectpublic final ImmutablePerson withBirthdate(java.time.ZonedDateTime value)
birthdate attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for birthdate (can be null)this objectpublic final ImmutablePerson withComments(java.lang.String value)
comments attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for comments (can be null)this objectpublic final ImmutablePerson withFirstName(java.lang.String value)
firstName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for firstNamethis objectpublic final ImmutablePerson withGender(Gender value)
gender attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for gender (can be null)this objectpublic final ImmutablePerson withLastName(java.lang.String value)
lastName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for lastNamethis objectpublic final ImmutablePerson withProperties(java.util.Map<java.lang.String,? extends java.lang.Object> entries)
properties map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the properties mapthis objectpublic final ImmutablePerson withTitle(java.lang.String value)
title attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for title (can be null)this objectpublic final ImmutablePerson 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 ImmutablePerson 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 ImmutablePerson 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 java.lang.String toString()
Person with attribute values.toString in class java.lang.Objectpublic static ImmutablePerson copyOf(Person instance)
Person 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 ImmutablePerson.Builder builder()
ImmutablePerson.