/** * Fill a builder with attribute values from the provided {@code com.neotys.neoload.model.repository.RegexpValidator} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ @CanIgnoreReturnValue public final Builder from(RegexpValidator instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return this; }
/** * Fill a builder with attribute values from the provided {@code com.neotys.neoload.model.repository.Validator} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ @CanIgnoreReturnValue public final Builder from(Validator instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return this; }
/** * Creates an immutable copy of a {@link RegexpValidator} value. * Uses accessors to get values to initialize the new immutable instance. * If an instance is already immutable, it is returned as is. * @param instance The instance to copy * @return A copied immutable RegexpValidator instance */ public static ImmutableRegexpValidator copyOf(RegexpValidator instance) { if (instance instanceof ImmutableRegexpValidator) { return (ImmutableRegexpValidator) instance; } return ImmutableRegexpValidator.builder() .from(instance) .build(); }