@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
/** * <p> * The newly created user. * </p> * This is a convenience that creates an instance of the {@link UserType.Builder} avoiding the need to create * one manually via {@link UserType#builder()}. * * When the {@link Consumer} completes, {@link UserType.Builder#build()} is called immediately and its result is * passed to {@link #user(UserType)}. * * @param user * a consumer that will call methods on {@link UserType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #user(UserType) */ default Builder user(Consumer<UserType.Builder> user) { return user(UserType.builder().applyMutation(user).build()); } }
/** * <p> * The newly created user. * </p> * This is a convenience that creates an instance of the {@link UserType.Builder} avoiding the need to create * one manually via {@link UserType#builder()}. * * When the {@link Consumer} completes, {@link UserType.Builder#build()} is called immediately and its result is * passed to {@link #user(UserType)}. * * @param user * a consumer that will call methods on {@link UserType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #user(UserType) */ default Builder user(Consumer<UserType.Builder> user) { return user(UserType.builder().applyMutation(user).build()); } }
@Override @SafeVarargs public final Builder users(Consumer<UserType.Builder>... users) { users(Stream.of(users).map(c -> UserType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }