/** * Creates an instance. * * @param name the name of this {@link ServerTransport} that clients will connect to * @return a new instance * @throws NullPointerException if {@code name} is {@code null} */ public static LocalServerTransport create(String name) { Objects.requireNonNull(name, "name must not be null"); return new LocalServerTransport(name); }
/** * Creates an instance. * * @param name the name of this {@link ServerTransport} that clients will connect to * @return a new instance * @throws NullPointerException if {@code name} is {@code null} */ public static LocalServerTransport create(String name) { Objects.requireNonNull(name, "name must not be null"); return new LocalServerTransport(name); }