/** * Creates a Maker for objects of a given type with a given initial state. * * @param instantiator creates the new objects * @param propertyValues define the initial state of the new objects */ @SafeVarargs public Maker(Instantiator<T> instantiator, PropertyValue<? super T, ?>... propertyValues) { this.instantiator = instantiator; this.values = byProperty(propertyValues); }
/** * Creates a Maker for objects of a given type with a given initial state. * * @param instantiator creates the new objects * @param propertyValues define the initial state of the new objects */ @SafeVarargs public Maker(Instantiator<T> instantiator, PropertyValue<? super T, ?>... propertyValues) { this.instantiator = instantiator; this.values = byProperty(propertyValues); }
@SafeVarargs private Maker(Maker<T> that, PropertyValue<? super T, ?>... propertyValues) { this.instantiator = that.instantiator; this.values = that.values.plusAll(byProperty(propertyValues)); }
@SafeVarargs private Maker(Maker<T> that, PropertyValue<? super T, ?>... propertyValues) { this.instantiator = that.instantiator; this.values = that.values.plusAll(byProperty(propertyValues)); }