/** * Fill a builder with attribute values from the provided {@code com.neotys.neoload.model.core.Element} 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(Element 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.IContainer} 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(IContainer instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return this; }
/** * Fill a builder with attribute values from the provided {@code com.neotys.neoload.model.core.ShareableElement} 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(ShareableElement instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return this; }
/** * Creates an immutable copy of a {@link Container} 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 Container instance */ public static ImmutableContainer copyOf(Container instance) { if (instance instanceof ImmutableContainer) { return (ImmutableContainer) instance; } return ImmutableContainer.builder() .from(instance) .build(); }
/** * Fill a builder with attribute values from the provided {@code com.neotys.neoload.model.repository.Container} 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(Container instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return this; }