(String protocol, int port)
| 25 | private final int port; |
| 26 | |
| 27 | private Port(String protocol, int port) { |
| 28 | this.protocol = Require.nonNull("Protocol", protocol); |
| 29 | this.port = port; |
| 30 | } |
| 31 | |
| 32 | public static Port tcp(int port) { |
| 33 | return new Port("tcp", port); |