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