@@ -78,6 +78,7 @@ private Sockets() {}
78
78
* @param name The socket option
79
79
* @param value The value of the socket option. May be null for some
80
80
* options.
81
+ * @param <T> The type of the socket option
81
82
*
82
83
* @throws UnsupportedOperationException if the socket does not support
83
84
* the option.
@@ -107,6 +108,7 @@ public static <T> void setOption(Socket s, SocketOption<T> name, T value) throws
107
108
*
108
109
* @param s the socket
109
110
* @param name The socket option
111
+ * @param <T> The type of the socket option
110
112
*
111
113
* @return The value of the socket option.
112
114
*
@@ -135,7 +137,8 @@ public static <T> T getOption(Socket s, SocketOption<T> name) throws IOException
135
137
*
136
138
* @param s the socket
137
139
* @param name The socket option
138
- * @param value The value of the socket option.
140
+ * @param value The value of the socket option
141
+ * @param <T> The type of the socket option
139
142
*
140
143
* @throws UnsupportedOperationException if the socket does not support
141
144
* the option.
@@ -165,6 +168,7 @@ public static <T> void setOption(ServerSocket s, SocketOption<T> name, T value)
165
168
*
166
169
* @param s the socket
167
170
* @param name The socket option
171
+ * @param <T> The type of the socket option
168
172
*
169
173
* @return The value of the socket option.
170
174
*
@@ -194,7 +198,8 @@ public static <T> T getOption(ServerSocket s, SocketOption<T> name) throws IOExc
194
198
*
195
199
* @param s the socket
196
200
* @param name The socket option
197
- * @param value The value of the socket option.
201
+ * @param value The value of the socket option
202
+ * @param <T> The type of the socket option
198
203
*
199
204
* @throws UnsupportedOperationException if the socket does not support
200
205
* the option.
@@ -225,6 +230,7 @@ public static <T> void setOption(DatagramSocket s, SocketOption<T> name, T value
225
230
*
226
231
* @param s the socket
227
232
* @param name The socket option
233
+ * @param <T> The type of the socket option
228
234
*
229
235
* @return The value of the socket option.
230
236
*
@@ -255,6 +261,8 @@ public static <T> T getOption(DatagramSocket s, SocketOption<T> name) throws IOE
255
261
*
256
262
* @param socketType the type of java.net socket
257
263
*
264
+ * @return A set of socket options
265
+ *
258
266
* @throws IllegalArgumentException if socketType is not a valid
259
267
* socket type from the java.net package.
260
268
*
0 commit comments