Package com.arakelian.faker.model
Class ImmutableRandomDataConfig
- java.lang.Object
-
- com.arakelian.faker.model.ImmutableRandomDataConfig
-
- All Implemented Interfaces:
RandomDataConfig
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRandomDataConfig extends java.lang.Object implements RandomDataConfigImmutable implementation ofRandomDataConfig.Use the builder to create immutable instances:
ImmutableRandomDataConfig.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRandomDataConfig.BuilderBuilds instances of typeImmutableRandomDataConfig.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRandomDataConfig.Builderbuilder()Creates a builder forImmutableRandomDataConfig.static ImmutableRandomDataConfigcopyOf(RandomDataConfig instance)Creates an immutable copy of aRandomDataConfigvalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableRandomDataConfigthat have equal attribute values.java.time.ZonedDateTimegetFromBirthday()java.util.RandomgetRandom()java.time.ZonedDateTimegetToBirthday()inthashCode()Returns a constant hash code value.java.lang.StringtoString()Prints the immutable valueRandomDataConfig.ImmutableRandomDataConfigwithFromBirthday(java.time.ZonedDateTime value)Copy the current immutable object by setting a value for thefromBirthdayattribute.ImmutableRandomDataConfigwithRandom(java.util.Random value)Copy the current immutable object by setting a value for therandomattribute.ImmutableRandomDataConfigwithToBirthday(java.time.ZonedDateTime value)Copy the current immutable object by setting a value for thetoBirthdayattribute.
-
-
-
Method Detail
-
getFromBirthday
public java.time.ZonedDateTime getFromBirthday()
- Specified by:
getFromBirthdayin interfaceRandomDataConfig- Returns:
- The value of the
fromBirthdayattribute
-
getRandom
public java.util.Random getRandom()
- Specified by:
getRandomin interfaceRandomDataConfig- Returns:
- The value of the
randomattribute
-
getToBirthday
public java.time.ZonedDateTime getToBirthday()
- Specified by:
getToBirthdayin interfaceRandomDataConfig- Returns:
- The value of the
toBirthdayattribute
-
withFromBirthday
public final ImmutableRandomDataConfig withFromBirthday(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for thefromBirthdayattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fromBirthday- Returns:
- A modified copy of the
thisobject
-
withRandom
public final ImmutableRandomDataConfig withRandom(java.util.Random value)
Copy the current immutable object by setting a value for therandomattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for random- Returns:
- A modified copy of the
thisobject
-
withToBirthday
public final ImmutableRandomDataConfig withToBirthday(java.time.ZonedDateTime value)
Copy the current immutable object by setting a value for thetoBirthdayattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for toBirthday- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableRandomDataConfigthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Returns a constant hash code value.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueRandomDataConfig.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableRandomDataConfig copyOf(RandomDataConfig instance)
Creates an immutable copy of aRandomDataConfigvalue. 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 RandomDataConfig instance
-
builder
public static ImmutableRandomDataConfig.Builder builder()
Creates a builder forImmutableRandomDataConfig.ImmutableRandomDataConfig.builder() .fromBirthday(java.time.ZonedDateTime) // optionalfromBirthday.random(Random) // optionalrandom.toBirthday(java.time.ZonedDateTime) // optionaltoBirthday.build();- Returns:
- A new ImmutableRandomDataConfig builder
-
-