Class ImmutableRandomDataConfig

  • All Implemented Interfaces:
    RandomDataConfig

    @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableRandomDataConfig
    extends java.lang.Object
    implements RandomDataConfig
    Immutable implementation of RandomDataConfig.

    Use the builder to create immutable instances: ImmutableRandomDataConfig.builder().

    • Method Detail

      • getFromBirthday

        public java.time.ZonedDateTime getFromBirthday()
        Specified by:
        getFromBirthday in interface RandomDataConfig
        Returns:
        The value of the fromBirthday attribute
      • getRandom

        public java.util.Random getRandom()
        Specified by:
        getRandom in interface RandomDataConfig
        Returns:
        The value of the random attribute
      • getToBirthday

        public java.time.ZonedDateTime getToBirthday()
        Specified by:
        getToBirthday in interface RandomDataConfig
        Returns:
        The value of the toBirthday attribute
      • withFromBirthday

        public final ImmutableRandomDataConfig withFromBirthday​(java.time.ZonedDateTime value)
        Copy the current immutable object by setting a value for the fromBirthday attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for fromBirthday
        Returns:
        A modified copy of the this object
      • withRandom

        public final ImmutableRandomDataConfig withRandom​(java.util.Random value)
        Copy the current immutable object by setting a value for the random attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for random
        Returns:
        A modified copy of the this object
      • withToBirthday

        public final ImmutableRandomDataConfig withToBirthday​(java.time.ZonedDateTime value)
        Copy the current immutable object by setting a value for the toBirthday attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for toBirthday
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of ImmutableRandomDataConfig that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Returns a constant hash code value.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value RandomDataConfig.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableRandomDataConfig copyOf​(RandomDataConfig instance)
        Creates an immutable copy of a RandomDataConfig value. 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