Showing
9 changed files
with
53 additions
and
5 deletions
... | @@ -95,6 +95,7 @@ public class DHCP extends BasePacket { | ... | @@ -95,6 +95,7 @@ public class DHCP extends BasePacket { |
95 | /** | 95 | /** |
96 | * @param opCode | 96 | * @param opCode |
97 | * the opCode to set | 97 | * the opCode to set |
98 | + * @return this | ||
98 | */ | 99 | */ |
99 | public DHCP setOpCode(final byte opCode) { | 100 | public DHCP setOpCode(final byte opCode) { |
100 | this.opCode = opCode; | 101 | this.opCode = opCode; |
... | @@ -111,6 +112,7 @@ public class DHCP extends BasePacket { | ... | @@ -111,6 +112,7 @@ public class DHCP extends BasePacket { |
111 | /** | 112 | /** |
112 | * @param hardwareType | 113 | * @param hardwareType |
113 | * the hardwareType to set | 114 | * the hardwareType to set |
115 | + * @return this | ||
114 | */ | 116 | */ |
115 | public DHCP setHardwareType(final byte hardwareType) { | 117 | public DHCP setHardwareType(final byte hardwareType) { |
116 | this.hardwareType = hardwareType; | 118 | this.hardwareType = hardwareType; |
... | @@ -127,6 +129,7 @@ public class DHCP extends BasePacket { | ... | @@ -127,6 +129,7 @@ public class DHCP extends BasePacket { |
127 | /** | 129 | /** |
128 | * @param hardwareAddressLength | 130 | * @param hardwareAddressLength |
129 | * the hardwareAddressLength to set | 131 | * the hardwareAddressLength to set |
132 | + * @return this | ||
130 | */ | 133 | */ |
131 | public DHCP setHardwareAddressLength(final byte hardwareAddressLength) { | 134 | public DHCP setHardwareAddressLength(final byte hardwareAddressLength) { |
132 | this.hardwareAddressLength = hardwareAddressLength; | 135 | this.hardwareAddressLength = hardwareAddressLength; |
... | @@ -143,6 +146,7 @@ public class DHCP extends BasePacket { | ... | @@ -143,6 +146,7 @@ public class DHCP extends BasePacket { |
143 | /** | 146 | /** |
144 | * @param hops | 147 | * @param hops |
145 | * the hops to set | 148 | * the hops to set |
149 | + * @return this | ||
146 | */ | 150 | */ |
147 | public DHCP setHops(final byte hops) { | 151 | public DHCP setHops(final byte hops) { |
148 | this.hops = hops; | 152 | this.hops = hops; |
... | @@ -159,6 +163,7 @@ public class DHCP extends BasePacket { | ... | @@ -159,6 +163,7 @@ public class DHCP extends BasePacket { |
159 | /** | 163 | /** |
160 | * @param transactionId | 164 | * @param transactionId |
161 | * the transactionId to set | 165 | * the transactionId to set |
166 | + * @return this | ||
162 | */ | 167 | */ |
163 | public DHCP setTransactionId(final int transactionId) { | 168 | public DHCP setTransactionId(final int transactionId) { |
164 | this.transactionId = transactionId; | 169 | this.transactionId = transactionId; |
... | @@ -175,6 +180,7 @@ public class DHCP extends BasePacket { | ... | @@ -175,6 +180,7 @@ public class DHCP extends BasePacket { |
175 | /** | 180 | /** |
176 | * @param seconds | 181 | * @param seconds |
177 | * the seconds to set | 182 | * the seconds to set |
183 | + * @return this | ||
178 | */ | 184 | */ |
179 | public DHCP setSeconds(final short seconds) { | 185 | public DHCP setSeconds(final short seconds) { |
180 | this.seconds = seconds; | 186 | this.seconds = seconds; |
... | @@ -191,6 +197,7 @@ public class DHCP extends BasePacket { | ... | @@ -191,6 +197,7 @@ public class DHCP extends BasePacket { |
191 | /** | 197 | /** |
192 | * @param flags | 198 | * @param flags |
193 | * the flags to set | 199 | * the flags to set |
200 | + * @return this | ||
194 | */ | 201 | */ |
195 | public DHCP setFlags(final short flags) { | 202 | public DHCP setFlags(final short flags) { |
196 | this.flags = flags; | 203 | this.flags = flags; |
... | @@ -207,6 +214,7 @@ public class DHCP extends BasePacket { | ... | @@ -207,6 +214,7 @@ public class DHCP extends BasePacket { |
207 | /** | 214 | /** |
208 | * @param clientIPAddress | 215 | * @param clientIPAddress |
209 | * the clientIPAddress to set | 216 | * the clientIPAddress to set |
217 | + * @return this | ||
210 | */ | 218 | */ |
211 | public DHCP setClientIPAddress(final int clientIPAddress) { | 219 | public DHCP setClientIPAddress(final int clientIPAddress) { |
212 | this.clientIPAddress = clientIPAddress; | 220 | this.clientIPAddress = clientIPAddress; |
... | @@ -223,6 +231,7 @@ public class DHCP extends BasePacket { | ... | @@ -223,6 +231,7 @@ public class DHCP extends BasePacket { |
223 | /** | 231 | /** |
224 | * @param yourIPAddress | 232 | * @param yourIPAddress |
225 | * the yourIPAddress to set | 233 | * the yourIPAddress to set |
234 | + * @return this | ||
226 | */ | 235 | */ |
227 | public DHCP setYourIPAddress(final int yourIPAddress) { | 236 | public DHCP setYourIPAddress(final int yourIPAddress) { |
228 | this.yourIPAddress = yourIPAddress; | 237 | this.yourIPAddress = yourIPAddress; |
... | @@ -239,6 +248,7 @@ public class DHCP extends BasePacket { | ... | @@ -239,6 +248,7 @@ public class DHCP extends BasePacket { |
239 | /** | 248 | /** |
240 | * @param serverIPAddress | 249 | * @param serverIPAddress |
241 | * the serverIPAddress to set | 250 | * the serverIPAddress to set |
251 | + * @return this | ||
242 | */ | 252 | */ |
243 | public DHCP setServerIPAddress(final int serverIPAddress) { | 253 | public DHCP setServerIPAddress(final int serverIPAddress) { |
244 | this.serverIPAddress = serverIPAddress; | 254 | this.serverIPAddress = serverIPAddress; |
... | @@ -255,6 +265,7 @@ public class DHCP extends BasePacket { | ... | @@ -255,6 +265,7 @@ public class DHCP extends BasePacket { |
255 | /** | 265 | /** |
256 | * @param gatewayIPAddress | 266 | * @param gatewayIPAddress |
257 | * the gatewayIPAddress to set | 267 | * the gatewayIPAddress to set |
268 | + * @return this | ||
258 | */ | 269 | */ |
259 | public DHCP setGatewayIPAddress(final int gatewayIPAddress) { | 270 | public DHCP setGatewayIPAddress(final int gatewayIPAddress) { |
260 | this.gatewayIPAddress = gatewayIPAddress; | 271 | this.gatewayIPAddress = gatewayIPAddress; |
... | @@ -271,6 +282,7 @@ public class DHCP extends BasePacket { | ... | @@ -271,6 +282,7 @@ public class DHCP extends BasePacket { |
271 | /** | 282 | /** |
272 | * @param clientHardwareAddress | 283 | * @param clientHardwareAddress |
273 | * the clientHardwareAddress to set | 284 | * the clientHardwareAddress to set |
285 | + * @return this | ||
274 | */ | 286 | */ |
275 | public DHCP setClientHardwareAddress(final byte[] clientHardwareAddress) { | 287 | public DHCP setClientHardwareAddress(final byte[] clientHardwareAddress) { |
276 | this.clientHardwareAddress = clientHardwareAddress; | 288 | this.clientHardwareAddress = clientHardwareAddress; |
... | @@ -303,6 +315,7 @@ public class DHCP extends BasePacket { | ... | @@ -303,6 +315,7 @@ public class DHCP extends BasePacket { |
303 | /** | 315 | /** |
304 | * @param options | 316 | * @param options |
305 | * the options to set | 317 | * the options to set |
318 | + * @return this | ||
306 | */ | 319 | */ |
307 | public DHCP setOptions(final List<DHCPOption> options) { | 320 | public DHCP setOptions(final List<DHCPOption> options) { |
308 | this.options = options; | 321 | this.options = options; |
... | @@ -334,6 +347,7 @@ public class DHCP extends BasePacket { | ... | @@ -334,6 +347,7 @@ public class DHCP extends BasePacket { |
334 | /** | 347 | /** |
335 | * @param server | 348 | * @param server |
336 | * the serverName to set | 349 | * the serverName to set |
350 | + * @return this | ||
337 | */ | 351 | */ |
338 | public DHCP setServerName(final String server) { | 352 | public DHCP setServerName(final String server) { |
339 | this.serverName = server; | 353 | this.serverName = server; |
... | @@ -350,6 +364,7 @@ public class DHCP extends BasePacket { | ... | @@ -350,6 +364,7 @@ public class DHCP extends BasePacket { |
350 | /** | 364 | /** |
351 | * @param bootFile | 365 | * @param bootFile |
352 | * the bootFileName to set | 366 | * the bootFileName to set |
367 | + * @return this | ||
353 | */ | 368 | */ |
354 | public DHCP setBootFileName(final String bootFile) { | 369 | public DHCP setBootFileName(final String bootFile) { |
355 | this.bootFileName = bootFile; | 370 | this.bootFileName = bootFile; | ... | ... |
... | @@ -38,6 +38,7 @@ public class DHCPOption { | ... | @@ -38,6 +38,7 @@ public class DHCPOption { |
38 | /** | 38 | /** |
39 | * @param code | 39 | * @param code |
40 | * the code to set | 40 | * the code to set |
41 | + * @return this | ||
41 | */ | 42 | */ |
42 | public DHCPOption setCode(final byte code) { | 43 | public DHCPOption setCode(final byte code) { |
43 | this.code = code; | 44 | this.code = code; |
... | @@ -54,6 +55,7 @@ public class DHCPOption { | ... | @@ -54,6 +55,7 @@ public class DHCPOption { |
54 | /** | 55 | /** |
55 | * @param length | 56 | * @param length |
56 | * the length to set | 57 | * the length to set |
58 | + * @return this | ||
57 | */ | 59 | */ |
58 | public DHCPOption setLength(final byte length) { | 60 | public DHCPOption setLength(final byte length) { |
59 | this.length = length; | 61 | this.length = length; |
... | @@ -70,6 +72,7 @@ public class DHCPOption { | ... | @@ -70,6 +72,7 @@ public class DHCPOption { |
70 | /** | 72 | /** |
71 | * @param data | 73 | * @param data |
72 | * the data to set | 74 | * the data to set |
75 | + * @return this | ||
73 | */ | 76 | */ |
74 | public DHCPOption setData(final byte[] data) { | 77 | public DHCPOption setData(final byte[] data) { |
75 | this.data = data; | 78 | this.data = data; | ... | ... |
... | @@ -255,6 +255,7 @@ public class Ethernet extends BasePacket { | ... | @@ -255,6 +255,7 @@ public class Ethernet extends BasePacket { |
255 | * | 255 | * |
256 | * @param pd | 256 | * @param pd |
257 | * the pad to set | 257 | * the pad to set |
258 | + * @return this | ||
258 | */ | 259 | */ |
259 | public Ethernet setPad(final boolean pd) { | 260 | public Ethernet setPad(final boolean pd) { |
260 | this.pad = pd; | 261 | this.pad = pd; |
... | @@ -345,7 +346,7 @@ public class Ethernet extends BasePacket { | ... | @@ -345,7 +346,7 @@ public class Ethernet extends BasePacket { |
345 | /** | 346 | /** |
346 | * Checks to see if a string is a valid MAC address. | 347 | * Checks to see if a string is a valid MAC address. |
347 | * | 348 | * |
348 | - * @param macAddress | 349 | + * @param macAddress string to test if it is a valid MAC |
349 | * @return True if macAddress is a valid MAC, False otherwise | 350 | * @return True if macAddress is a valid MAC, False otherwise |
350 | */ | 351 | */ |
351 | public static boolean isMACAddress(final String macAddress) { | 352 | public static boolean isMACAddress(final String macAddress) { |
... | @@ -368,7 +369,7 @@ public class Ethernet extends BasePacket { | ... | @@ -368,7 +369,7 @@ public class Ethernet extends BasePacket { |
368 | * matter, and returns a corresponding byte[]. | 369 | * matter, and returns a corresponding byte[]. |
369 | * | 370 | * |
370 | * @param macAddress | 371 | * @param macAddress |
371 | - * The MAC address to convert into a bye array | 372 | + * The MAC address to convert into a byte array |
372 | * @return The macAddress as a byte array | 373 | * @return The macAddress as a byte array |
373 | */ | 374 | */ |
374 | public static byte[] toMACAddress(final String macAddress) { | 375 | public static byte[] toMACAddress(final String macAddress) { |
... | @@ -379,7 +380,7 @@ public class Ethernet extends BasePacket { | ... | @@ -379,7 +380,7 @@ public class Ethernet extends BasePacket { |
379 | * Accepts a MAC address and returns the corresponding long, where the MAC | 380 | * Accepts a MAC address and returns the corresponding long, where the MAC |
380 | * bytes are set on the lower order bytes of the long. | 381 | * bytes are set on the lower order bytes of the long. |
381 | * | 382 | * |
382 | - * @param macAddress | 383 | + * @param macAddress MAC address as a byte array |
383 | * @return a long containing the mac address bytes | 384 | * @return a long containing the mac address bytes |
384 | */ | 385 | */ |
385 | public static long toLong(final byte[] macAddress) { | 386 | public static long toLong(final byte[] macAddress) { |
... | @@ -389,7 +390,7 @@ public class Ethernet extends BasePacket { | ... | @@ -389,7 +390,7 @@ public class Ethernet extends BasePacket { |
389 | /** | 390 | /** |
390 | * Converts a long MAC address to a byte array. | 391 | * Converts a long MAC address to a byte array. |
391 | * | 392 | * |
392 | - * @param macAddress | 393 | + * @param macAddress MAC address set on the lower order bytes of the long |
393 | * @return the bytes of the mac address | 394 | * @return the bytes of the mac address |
394 | */ | 395 | */ |
395 | public static byte[] toByteArray(final long macAddress) { | 396 | public static byte[] toByteArray(final long macAddress) { | ... | ... |
... | @@ -39,6 +39,7 @@ public class ICMP extends BasePacket { | ... | @@ -39,6 +39,7 @@ public class ICMP extends BasePacket { |
39 | /** | 39 | /** |
40 | * @param icmpType | 40 | * @param icmpType |
41 | * to set | 41 | * to set |
42 | + * @return this | ||
42 | */ | 43 | */ |
43 | public ICMP setIcmpType(final byte icmpType) { | 44 | public ICMP setIcmpType(final byte icmpType) { |
44 | this.icmpType = icmpType; | 45 | this.icmpType = icmpType; |
... | @@ -55,6 +56,7 @@ public class ICMP extends BasePacket { | ... | @@ -55,6 +56,7 @@ public class ICMP extends BasePacket { |
55 | /** | 56 | /** |
56 | * @param icmpCode | 57 | * @param icmpCode |
57 | * code to set | 58 | * code to set |
59 | + * @return this | ||
58 | */ | 60 | */ |
59 | public ICMP setIcmpCode(final byte icmpCode) { | 61 | public ICMP setIcmpCode(final byte icmpCode) { |
60 | this.icmpCode = icmpCode; | 62 | this.icmpCode = icmpCode; |
... | @@ -71,6 +73,7 @@ public class ICMP extends BasePacket { | ... | @@ -71,6 +73,7 @@ public class ICMP extends BasePacket { |
71 | /** | 73 | /** |
72 | * @param checksum | 74 | * @param checksum |
73 | * the checksum to set | 75 | * the checksum to set |
76 | + * @return this | ||
74 | */ | 77 | */ |
75 | public ICMP setChecksum(final short checksum) { | 78 | public ICMP setChecksum(final short checksum) { |
76 | this.checksum = checksum; | 79 | this.checksum = checksum; | ... | ... |
... | @@ -76,6 +76,7 @@ public class IPv4 extends BasePacket { | ... | @@ -76,6 +76,7 @@ public class IPv4 extends BasePacket { |
76 | /** | 76 | /** |
77 | * @param version | 77 | * @param version |
78 | * the version to set | 78 | * the version to set |
79 | + * @return this | ||
79 | */ | 80 | */ |
80 | public IPv4 setVersion(final byte version) { | 81 | public IPv4 setVersion(final byte version) { |
81 | this.version = version; | 82 | this.version = version; |
... | @@ -99,6 +100,7 @@ public class IPv4 extends BasePacket { | ... | @@ -99,6 +100,7 @@ public class IPv4 extends BasePacket { |
99 | /** | 100 | /** |
100 | * @param diffServ | 101 | * @param diffServ |
101 | * the diffServ to set | 102 | * the diffServ to set |
103 | + * @return this | ||
102 | */ | 104 | */ |
103 | public IPv4 setDiffServ(final byte diffServ) { | 105 | public IPv4 setDiffServ(final byte diffServ) { |
104 | this.diffServ = diffServ; | 106 | this.diffServ = diffServ; |
... | @@ -130,6 +132,7 @@ public class IPv4 extends BasePacket { | ... | @@ -130,6 +132,7 @@ public class IPv4 extends BasePacket { |
130 | /** | 132 | /** |
131 | * @param identification | 133 | * @param identification |
132 | * the identification to set | 134 | * the identification to set |
135 | + * @return this | ||
133 | */ | 136 | */ |
134 | public IPv4 setIdentification(final short identification) { | 137 | public IPv4 setIdentification(final short identification) { |
135 | this.identification = identification; | 138 | this.identification = identification; |
... | @@ -146,7 +149,8 @@ public class IPv4 extends BasePacket { | ... | @@ -146,7 +149,8 @@ public class IPv4 extends BasePacket { |
146 | /** | 149 | /** |
147 | * @param flags | 150 | * @param flags |
148 | * the flags to set | 151 | * the flags to set |
149 | - */ | 152 | + * @return this |
153 | +s */ | ||
150 | public IPv4 setFlags(final byte flags) { | 154 | public IPv4 setFlags(final byte flags) { |
151 | this.flags = flags; | 155 | this.flags = flags; |
152 | return this; | 156 | return this; |
... | @@ -162,6 +166,7 @@ public class IPv4 extends BasePacket { | ... | @@ -162,6 +166,7 @@ public class IPv4 extends BasePacket { |
162 | /** | 166 | /** |
163 | * @param fragmentOffset | 167 | * @param fragmentOffset |
164 | * the fragmentOffset to set | 168 | * the fragmentOffset to set |
169 | + * @return this | ||
165 | */ | 170 | */ |
166 | public IPv4 setFragmentOffset(final short fragmentOffset) { | 171 | public IPv4 setFragmentOffset(final short fragmentOffset) { |
167 | this.fragmentOffset = fragmentOffset; | 172 | this.fragmentOffset = fragmentOffset; |
... | @@ -178,6 +183,7 @@ public class IPv4 extends BasePacket { | ... | @@ -178,6 +183,7 @@ public class IPv4 extends BasePacket { |
178 | /** | 183 | /** |
179 | * @param ttl | 184 | * @param ttl |
180 | * the ttl to set | 185 | * the ttl to set |
186 | + * @return this | ||
181 | */ | 187 | */ |
182 | public IPv4 setTtl(final byte ttl) { | 188 | public IPv4 setTtl(final byte ttl) { |
183 | this.ttl = ttl; | 189 | this.ttl = ttl; |
... | @@ -194,6 +200,7 @@ public class IPv4 extends BasePacket { | ... | @@ -194,6 +200,7 @@ public class IPv4 extends BasePacket { |
194 | /** | 200 | /** |
195 | * @param protocol | 201 | * @param protocol |
196 | * the protocol to set | 202 | * the protocol to set |
203 | + * @return this | ||
197 | */ | 204 | */ |
198 | public IPv4 setProtocol(final byte protocol) { | 205 | public IPv4 setProtocol(final byte protocol) { |
199 | this.protocol = protocol; | 206 | this.protocol = protocol; |
... | @@ -210,6 +217,7 @@ public class IPv4 extends BasePacket { | ... | @@ -210,6 +217,7 @@ public class IPv4 extends BasePacket { |
210 | /** | 217 | /** |
211 | * @param checksum | 218 | * @param checksum |
212 | * the checksum to set | 219 | * the checksum to set |
220 | + * @return this | ||
213 | */ | 221 | */ |
214 | public IPv4 setChecksum(final short checksum) { | 222 | public IPv4 setChecksum(final short checksum) { |
215 | this.checksum = checksum; | 223 | this.checksum = checksum; |
... | @@ -232,6 +240,7 @@ public class IPv4 extends BasePacket { | ... | @@ -232,6 +240,7 @@ public class IPv4 extends BasePacket { |
232 | /** | 240 | /** |
233 | * @param sourceAddress | 241 | * @param sourceAddress |
234 | * the sourceAddress to set | 242 | * the sourceAddress to set |
243 | + * @return this | ||
235 | */ | 244 | */ |
236 | public IPv4 setSourceAddress(final int sourceAddress) { | 245 | public IPv4 setSourceAddress(final int sourceAddress) { |
237 | this.sourceAddress = sourceAddress; | 246 | this.sourceAddress = sourceAddress; |
... | @@ -241,6 +250,7 @@ public class IPv4 extends BasePacket { | ... | @@ -241,6 +250,7 @@ public class IPv4 extends BasePacket { |
241 | /** | 250 | /** |
242 | * @param sourceAddress | 251 | * @param sourceAddress |
243 | * the sourceAddress to set | 252 | * the sourceAddress to set |
253 | + * @return this | ||
244 | */ | 254 | */ |
245 | public IPv4 setSourceAddress(final String sourceAddress) { | 255 | public IPv4 setSourceAddress(final String sourceAddress) { |
246 | this.sourceAddress = IPv4.toIPv4Address(sourceAddress); | 256 | this.sourceAddress = IPv4.toIPv4Address(sourceAddress); |
... | @@ -257,6 +267,7 @@ public class IPv4 extends BasePacket { | ... | @@ -257,6 +267,7 @@ public class IPv4 extends BasePacket { |
257 | /** | 267 | /** |
258 | * @param destinationAddress | 268 | * @param destinationAddress |
259 | * the destinationAddress to set | 269 | * the destinationAddress to set |
270 | + * @return this | ||
260 | */ | 271 | */ |
261 | public IPv4 setDestinationAddress(final int destinationAddress) { | 272 | public IPv4 setDestinationAddress(final int destinationAddress) { |
262 | this.destinationAddress = destinationAddress; | 273 | this.destinationAddress = destinationAddress; |
... | @@ -266,6 +277,7 @@ public class IPv4 extends BasePacket { | ... | @@ -266,6 +277,7 @@ public class IPv4 extends BasePacket { |
266 | /** | 277 | /** |
267 | * @param destinationAddress | 278 | * @param destinationAddress |
268 | * the destinationAddress to set | 279 | * the destinationAddress to set |
280 | + * @return this | ||
269 | */ | 281 | */ |
270 | public IPv4 setDestinationAddress(final String destinationAddress) { | 282 | public IPv4 setDestinationAddress(final String destinationAddress) { |
271 | this.destinationAddress = IPv4.toIPv4Address(destinationAddress); | 283 | this.destinationAddress = IPv4.toIPv4Address(destinationAddress); |
... | @@ -282,6 +294,7 @@ public class IPv4 extends BasePacket { | ... | @@ -282,6 +294,7 @@ public class IPv4 extends BasePacket { |
282 | /** | 294 | /** |
283 | * @param options | 295 | * @param options |
284 | * the options to set | 296 | * the options to set |
297 | + * @return this | ||
285 | */ | 298 | */ |
286 | public IPv4 setOptions(final byte[] options) { | 299 | public IPv4 setOptions(final byte[] options) { |
287 | if (options != null && options.length % 4 > 0) { | 300 | if (options != null && options.length % 4 > 0) { | ... | ... |
... | @@ -48,6 +48,7 @@ public class LLDP extends BasePacket { | ... | @@ -48,6 +48,7 @@ public class LLDP extends BasePacket { |
48 | /** | 48 | /** |
49 | * @param chassis | 49 | * @param chassis |
50 | * the chassisId to set | 50 | * the chassisId to set |
51 | + * @return this | ||
51 | */ | 52 | */ |
52 | public LLDP setChassisId(final LLDPTLV chassis) { | 53 | public LLDP setChassisId(final LLDPTLV chassis) { |
53 | this.chassisId = chassis; | 54 | this.chassisId = chassis; |
... | @@ -64,6 +65,7 @@ public class LLDP extends BasePacket { | ... | @@ -64,6 +65,7 @@ public class LLDP extends BasePacket { |
64 | /** | 65 | /** |
65 | * @param portId | 66 | * @param portId |
66 | * the portId to set | 67 | * the portId to set |
68 | + * @return this | ||
67 | */ | 69 | */ |
68 | public LLDP setPortId(final LLDPTLV portId) { | 70 | public LLDP setPortId(final LLDPTLV portId) { |
69 | this.portId = portId; | 71 | this.portId = portId; |
... | @@ -80,6 +82,7 @@ public class LLDP extends BasePacket { | ... | @@ -80,6 +82,7 @@ public class LLDP extends BasePacket { |
80 | /** | 82 | /** |
81 | * @param ttl | 83 | * @param ttl |
82 | * the ttl to set | 84 | * the ttl to set |
85 | + * @return this | ||
83 | */ | 86 | */ |
84 | public LLDP setTtl(final LLDPTLV ttl) { | 87 | public LLDP setTtl(final LLDPTLV ttl) { |
85 | this.ttl = ttl; | 88 | this.ttl = ttl; |
... | @@ -96,6 +99,7 @@ public class LLDP extends BasePacket { | ... | @@ -96,6 +99,7 @@ public class LLDP extends BasePacket { |
96 | /** | 99 | /** |
97 | * @param optionalTLVList | 100 | * @param optionalTLVList |
98 | * the optionalTLVList to set | 101 | * the optionalTLVList to set |
102 | + * @return this | ||
99 | */ | 103 | */ |
100 | public LLDP setOptionalTLVList(final List<LLDPTLV> optionalTLVList) { | 104 | public LLDP setOptionalTLVList(final List<LLDPTLV> optionalTLVList) { |
101 | this.optionalTLVList = optionalTLVList; | 105 | this.optionalTLVList = optionalTLVList; | ... | ... |
... | @@ -40,6 +40,7 @@ public class LLDPTLV { | ... | @@ -40,6 +40,7 @@ public class LLDPTLV { |
40 | /** | 40 | /** |
41 | * @param type | 41 | * @param type |
42 | * the type to set | 42 | * the type to set |
43 | + * @return this | ||
43 | */ | 44 | */ |
44 | public LLDPTLV setType(final byte type) { | 45 | public LLDPTLV setType(final byte type) { |
45 | this.type = type; | 46 | this.type = type; |
... | @@ -56,6 +57,7 @@ public class LLDPTLV { | ... | @@ -56,6 +57,7 @@ public class LLDPTLV { |
56 | /** | 57 | /** |
57 | * @param length | 58 | * @param length |
58 | * the length to set | 59 | * the length to set |
60 | + * @return this | ||
59 | */ | 61 | */ |
60 | public LLDPTLV setLength(final short length) { | 62 | public LLDPTLV setLength(final short length) { |
61 | this.length = length; | 63 | this.length = length; |
... | @@ -72,6 +74,7 @@ public class LLDPTLV { | ... | @@ -72,6 +74,7 @@ public class LLDPTLV { |
72 | /** | 74 | /** |
73 | * @param value | 75 | * @param value |
74 | * the value to set | 76 | * the value to set |
77 | + * @return this | ||
75 | */ | 78 | */ |
76 | public LLDPTLV setValue(final byte[] value) { | 79 | public LLDPTLV setValue(final byte[] value) { |
77 | this.value = value; | 80 | this.value = value; | ... | ... |
... | @@ -46,6 +46,7 @@ public class TCP extends BasePacket { | ... | @@ -46,6 +46,7 @@ public class TCP extends BasePacket { |
46 | /** | 46 | /** |
47 | * @param sourcePort | 47 | * @param sourcePort |
48 | * the sourcePort to set | 48 | * the sourcePort to set |
49 | + * @return this | ||
49 | */ | 50 | */ |
50 | public TCP setSourcePort(final short sourcePort) { | 51 | public TCP setSourcePort(final short sourcePort) { |
51 | this.sourcePort = sourcePort; | 52 | this.sourcePort = sourcePort; |
... | @@ -62,6 +63,7 @@ public class TCP extends BasePacket { | ... | @@ -62,6 +63,7 @@ public class TCP extends BasePacket { |
62 | /** | 63 | /** |
63 | * @param destinationPort | 64 | * @param destinationPort |
64 | * the destinationPort to set | 65 | * the destinationPort to set |
66 | + * @return this | ||
65 | */ | 67 | */ |
66 | public TCP setDestinationPort(final short destinationPort) { | 68 | public TCP setDestinationPort(final short destinationPort) { |
67 | this.destinationPort = destinationPort; | 69 | this.destinationPort = destinationPort; |
... | @@ -157,6 +159,7 @@ public class TCP extends BasePacket { | ... | @@ -157,6 +159,7 @@ public class TCP extends BasePacket { |
157 | /** | 159 | /** |
158 | * @param checksum | 160 | * @param checksum |
159 | * the checksum to set | 161 | * the checksum to set |
162 | + * @return this | ||
160 | */ | 163 | */ |
161 | public TCP setChecksum(final short checksum) { | 164 | public TCP setChecksum(final short checksum) { |
162 | this.checksum = checksum; | 165 | this.checksum = checksum; | ... | ... |
... | @@ -57,6 +57,7 @@ public class UDP extends BasePacket { | ... | @@ -57,6 +57,7 @@ public class UDP extends BasePacket { |
57 | /** | 57 | /** |
58 | * @param sourcePort | 58 | * @param sourcePort |
59 | * the sourcePort to set | 59 | * the sourcePort to set |
60 | + * @return this | ||
60 | */ | 61 | */ |
61 | public UDP setSourcePort(final short sourcePort) { | 62 | public UDP setSourcePort(final short sourcePort) { |
62 | this.sourcePort = sourcePort; | 63 | this.sourcePort = sourcePort; |
... | @@ -73,6 +74,7 @@ public class UDP extends BasePacket { | ... | @@ -73,6 +74,7 @@ public class UDP extends BasePacket { |
73 | /** | 74 | /** |
74 | * @param destinationPort | 75 | * @param destinationPort |
75 | * the destinationPort to set | 76 | * the destinationPort to set |
77 | + * @return this | ||
76 | */ | 78 | */ |
77 | public UDP setDestinationPort(final short destinationPort) { | 79 | public UDP setDestinationPort(final short destinationPort) { |
78 | this.destinationPort = destinationPort; | 80 | this.destinationPort = destinationPort; |
... | @@ -96,6 +98,7 @@ public class UDP extends BasePacket { | ... | @@ -96,6 +98,7 @@ public class UDP extends BasePacket { |
96 | /** | 98 | /** |
97 | * @param checksum | 99 | * @param checksum |
98 | * the checksum to set | 100 | * the checksum to set |
101 | + * @return this | ||
99 | */ | 102 | */ |
100 | public UDP setChecksum(final short checksum) { | 103 | public UDP setChecksum(final short checksum) { |
101 | this.checksum = checksum; | 104 | this.checksum = checksum; | ... | ... |
-
Please register or login to post a comment