@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRandomDataConfig extends java.lang.Object implements RandomDataConfig
RandomDataConfig.
Use the builder to create immutable instances:
ImmutableRandomDataConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRandomDataConfig.Builder
Builds instances of type
ImmutableRandomDataConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableRandomDataConfig.Builder |
builder()
Creates a builder for
ImmutableRandomDataConfig. |
static ImmutableRandomDataConfig |
copyOf(RandomDataConfig instance)
Creates an immutable copy of a
RandomDataConfig value. |
boolean |
equals(java.lang.Object another)
This instance is equal to all instances of
ImmutableRandomDataConfig that have equal attribute values. |
java.time.ZonedDateTime |
getFromBirthday() |
java.util.Random |
getRandom() |
java.time.ZonedDateTime |
getToBirthday() |
int |
hashCode()
Returns a constant hash code value.
|
java.lang.String |
toString()
Prints the immutable value
RandomDataConfig. |
ImmutableRandomDataConfig |
withFromBirthday(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for the
fromBirthday attribute. |
ImmutableRandomDataConfig |
withRandom(java.util.Random value)
Copy the current immutable object by setting a value for the
random attribute. |
ImmutableRandomDataConfig |
withToBirthday(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for the
toBirthday attribute. |
public java.time.ZonedDateTime getFromBirthday()
getFromBirthday in interface RandomDataConfigfromBirthday attributepublic java.util.Random getRandom()
getRandom in interface RandomDataConfigrandom attributepublic java.time.ZonedDateTime getToBirthday()
getToBirthday in interface RandomDataConfigtoBirthday attributepublic final ImmutableRandomDataConfig withFromBirthday(java.time.ZonedDateTime value)
fromBirthday attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for fromBirthdaythis objectpublic final ImmutableRandomDataConfig withRandom(java.util.Random value)
random attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for randomthis objectpublic final ImmutableRandomDataConfig withToBirthday(java.time.ZonedDateTime value)
toBirthday attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for toBirthdaythis objectpublic boolean equals(@Nullable
java.lang.Object another)
ImmutableRandomDataConfig that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
RandomDataConfig.toString in class java.lang.Objectpublic static ImmutableRandomDataConfig copyOf(RandomDataConfig instance)
RandomDataConfig 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 ImmutableRandomDataConfig.Builder builder()
ImmutableRandomDataConfig.