Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 3b1743c

Browse files
committed
Javadoc corrections for buffer accessor methods
Fixes #22
1 parent d72bdb7 commit 3b1743c

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/main/java/io/netty/buffer/api/BufAccessors.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public interface BufAccessors {
4343
* @param roff The read offset, an absolute offset into this buffer, to read from.
4444
* @return The byte value at the given offset.
4545
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
46-
* greater than or equal to {@link Buf#capacity()} minus {@link Byte#BYTES}.
46+
* greater than {@link Buf#capacity()} minus {@link Byte#BYTES}.
4747
*/
4848
byte getByte(int roff);
4949

@@ -67,7 +67,7 @@ public interface BufAccessors {
6767
* @param roff The read offset, an absolute offset into this buffer, to read from.
6868
* @return The unsigned byte value at the given offset.
6969
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
70-
* greater than or equal to {@link Buf#capacity()} minus {@link Byte#BYTES}.
70+
* greater than {@link Buf#capacity()} minus {@link Byte#BYTES}.
7171
*/
7272
int getUnsignedByte(int roff);
7373

@@ -92,7 +92,7 @@ public interface BufAccessors {
9292
* @param value The byte value to write.
9393
* @return This Buf.
9494
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
95-
* greater than or equal to {@link Buf#capacity()} minus {@link Byte#BYTES}.
95+
* greater than {@link Buf#capacity()} minus {@link Byte#BYTES}.
9696
*/
9797
Buf setByte(int woff, byte value);
9898

@@ -117,7 +117,7 @@ public interface BufAccessors {
117117
* @param value The int value to write.
118118
* @return This Buf.
119119
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
120-
* greater than or equal to {@link Buf#capacity()} minus {@link Byte#BYTES}.
120+
* greater than {@link Buf#capacity()} minus {@link Byte#BYTES}.
121121
*/
122122
Buf setUnsignedByte(int woff, int value);
123123

@@ -141,7 +141,7 @@ public interface BufAccessors {
141141
* @param roff The read offset, an absolute offset into this buffer, to read from.
142142
* @return The char value at the given offset.
143143
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
144-
* greater than or equal to {@link Buf#capacity()} minus 2.
144+
* greater than {@link Buf#capacity()} minus 2.
145145
*/
146146
char getChar(int roff);
147147

@@ -166,7 +166,7 @@ public interface BufAccessors {
166166
* @param value The char value to write.
167167
* @return This Buf.
168168
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
169-
* greater than or equal to {@link Buf#capacity()} minus 2.
169+
* greater than {@link Buf#capacity()} minus 2.
170170
*/
171171
Buf setChar(int woff, char value);
172172

@@ -190,7 +190,7 @@ public interface BufAccessors {
190190
* @param roff The read offset, an absolute offset into this buffer, to read from.
191191
* @return The short value at the given offset.
192192
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
193-
* greater than or equal to {@link Buf#capacity()} minus {@link Short#BYTES}.
193+
* greater than {@link Buf#capacity()} minus {@link Short#BYTES}.
194194
*/
195195
short getShort(int roff);
196196

@@ -214,7 +214,7 @@ public interface BufAccessors {
214214
* @param roff The read offset, an absolute offset into this buffer, to read from.
215215
* @return The unsigned short value at the given offset.
216216
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
217-
* greater than or equal to {@link Buf#capacity()} minus {@link Short#BYTES}.
217+
* greater than {@link Buf#capacity()} minus {@link Short#BYTES}.
218218
*/
219219
int getUnsignedShort(int roff);
220220

@@ -239,7 +239,7 @@ public interface BufAccessors {
239239
* @param value The short value to write.
240240
* @return This Buf.
241241
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
242-
* greater than or equal to {@link Buf#capacity()} minus {@link Short#BYTES}.
242+
* greater than {@link Buf#capacity()} minus {@link Short#BYTES}.
243243
*/
244244
Buf setShort(int woff, short value);
245245

@@ -264,7 +264,7 @@ public interface BufAccessors {
264264
* @param value The int value to write.
265265
* @return This Buf.
266266
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
267-
* greater than or equal to {@link Buf#capacity()} minus {@link Short#BYTES}.
267+
* greater than {@link Buf#capacity()} minus {@link Short#BYTES}.
268268
*/
269269
Buf setUnsignedShort(int woff, int value);
270270

@@ -288,7 +288,7 @@ public interface BufAccessors {
288288
* @param roff The read offset, an absolute offset into this buffer, to read from.
289289
* @return The int value at the given offset.
290290
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
291-
* greater than or equal to {@link Buf#capacity()} minus 3.
291+
* greater than {@link Buf#capacity()} minus 3.
292292
*/
293293
int getMedium(int roff);
294294

@@ -312,7 +312,7 @@ public interface BufAccessors {
312312
* @param roff The read offset, an absolute offset into this buffer, to read from.
313313
* @return The unsigned int value at the given offset.
314314
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
315-
* greater than or equal to {@link Buf#capacity()} minus 3.
315+
* greater than {@link Buf#capacity()} minus 3.
316316
*/
317317
int getUnsignedMedium(int roff);
318318

@@ -337,7 +337,7 @@ public interface BufAccessors {
337337
* @param value The int value to write.
338338
* @return This Buf.
339339
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
340-
* greater than or equal to {@link Buf#capacity()} minus 3.
340+
* greater than {@link Buf#capacity()} minus 3.
341341
*/
342342
Buf setMedium(int woff, int value);
343343

@@ -362,7 +362,7 @@ public interface BufAccessors {
362362
* @param value The int value to write.
363363
* @return This Buf.
364364
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
365-
* greater than or equal to {@link Buf#capacity()} minus 3.
365+
* greater than {@link Buf#capacity()} minus 3.
366366
*/
367367
Buf setUnsignedMedium(int woff, int value);
368368

@@ -386,7 +386,7 @@ public interface BufAccessors {
386386
* @param roff The read offset, an absolute offset into this buffer, to read from.
387387
* @return The int value at the given offset.
388388
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
389-
* greater than or equal to {@link Buf#capacity()} minus {@link Integer#BYTES}.
389+
* greater than {@link Buf#capacity()} minus {@link Integer#BYTES}.
390390
*/
391391
int getInt(int roff);
392392

@@ -410,7 +410,7 @@ public interface BufAccessors {
410410
* @param roff The read offset, an absolute offset into this buffer, to read from.
411411
* @return The unsigned int value at the given offset.
412412
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
413-
* greater than or equal to {@link Buf#capacity()} minus {@link Integer#BYTES}.
413+
* greater than {@link Buf#capacity()} minus {@link Integer#BYTES}.
414414
*/
415415
long getUnsignedInt(int roff);
416416

@@ -435,7 +435,7 @@ public interface BufAccessors {
435435
* @param value The int value to write.
436436
* @return This Buf.
437437
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
438-
* greater than or equal to {@link Buf#capacity()} minus {@link Integer#BYTES}.
438+
* greater than {@link Buf#capacity()} minus {@link Integer#BYTES}.
439439
*/
440440
Buf setInt(int woff, int value);
441441

@@ -460,7 +460,7 @@ public interface BufAccessors {
460460
* @param value The long value to write.
461461
* @return This Buf.
462462
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
463-
* greater than or equal to {@link Buf#capacity()} minus {@link Integer#BYTES}.
463+
* greater than {@link Buf#capacity()} minus {@link Integer#BYTES}.
464464
*/
465465
Buf setUnsignedInt(int woff, long value);
466466

@@ -484,7 +484,7 @@ public interface BufAccessors {
484484
* @param roff The read offset, an absolute offset into this buffer, to read from.
485485
* @return The float value at the given offset.
486486
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
487-
* greater than or equal to {@link Buf#capacity()} minus {@link Float#BYTES}.
487+
* greater than {@link Buf#capacity()} minus {@link Float#BYTES}.
488488
*/
489489
float getFloat(int roff);
490490

@@ -509,7 +509,7 @@ public interface BufAccessors {
509509
* @param value The float value to write.
510510
* @return This Buf.
511511
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
512-
* greater than or equal to {@link Buf#capacity()} minus {@link Float#BYTES}.
512+
* greater than {@link Buf#capacity()} minus {@link Float#BYTES}.
513513
*/
514514
Buf setFloat(int woff, float value);
515515

@@ -533,7 +533,7 @@ public interface BufAccessors {
533533
* @param roff The read offset, an absolute offset into this buffer, to read from.
534534
* @return The long value at the given offset.
535535
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
536-
* greater than or equal to {@link Buf#capacity()} minus {@link Long#BYTES}.
536+
* greater than {@link Buf#capacity()} minus {@link Long#BYTES}.
537537
*/
538538
long getLong(int roff);
539539

@@ -558,7 +558,7 @@ public interface BufAccessors {
558558
* @param value The long value to write.
559559
* @return This Buf.
560560
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
561-
* greater than or equal to {@link Buf#capacity()} minus {@link Long#BYTES}.
561+
* greater than {@link Buf#capacity()} minus {@link Long#BYTES}.
562562
*/
563563
Buf setLong(int woff, long value);
564564

@@ -582,7 +582,7 @@ public interface BufAccessors {
582582
* @param roff The read offset, an absolute offset into this buffer, to read from.
583583
* @return The double value at the given offset.
584584
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
585-
* greater than or equal to {@link Buf#capacity()} minus {@link Double#BYTES}.
585+
* greater than {@link Buf#capacity()} minus {@link Double#BYTES}.
586586
*/
587587
double getDouble(int roff);
588588

@@ -607,7 +607,7 @@ public interface BufAccessors {
607607
* @param value The double value to write.
608608
* @return This Buf.
609609
* @throws IndexOutOfBoundsException if the given offset is out of bounds of the buffer, that is, less than 0 or
610-
* greater than or equal to {@link Buf#capacity()} minus {@link Double#BYTES}.
610+
* greater than {@link Buf#capacity()} minus {@link Double#BYTES}.
611611
*/
612612
Buf setDouble(int woff, double value);
613613
// </editor-fold>

0 commit comments

Comments
 (0)