Skip to content

Commit 12fe11e

Browse files
committed
Javadoc
1 parent a17cc99 commit 12fe11e

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/main/java/org/apache/commons/io/input/buffer/CircularByteBuffer.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @since 2.7
3131
*/
3232
public class CircularByteBuffer {
33+
3334
private final byte[] buffer;
3435
private int startOffset;
3536
private int endOffset;
@@ -116,7 +117,7 @@ public void clear() {
116117
}
117118

118119
/**
119-
* Returns the number of bytes, that are currently present in the buffer.
120+
* Gets the number of bytes, that are currently present in the buffer.
120121
*
121122
* @return the number of bytes
122123
*/
@@ -125,7 +126,7 @@ public int getCurrentNumberOfBytes() {
125126
}
126127

127128
/**
128-
* Returns the number of bytes, that can currently be added to the buffer.
129+
* Gets the number of bytes, that can currently be added to the buffer.
129130
*
130131
* @return the number of bytes that can be added
131132
*/
@@ -134,19 +135,19 @@ public int getSpace() {
134135
}
135136

136137
/**
137-
* Returns, whether the buffer is currently holding, at least, a single byte.
138+
* Tests whether the buffer is currently holding at least a single byte.
138139
*
139-
* @return true if the buffer is not empty
140+
* @return true whether the buffer is currently holding at least a single byte.
140141
*/
141142
public boolean hasBytes() {
142143
return currentNumberOfBytes > 0;
143144
}
144145

145146
/**
146-
* Returns, whether there is currently room for a single byte in the buffer.
147+
* Tests whether there is currently room for a single byte in the buffer.
147148
* Same as {@link #hasSpace(int) hasSpace(1)}.
148149
*
149-
* @return true if there is space for a byte
150+
* @return true whether there is currently room for a single byte in the buffer.
150151
* @see #hasSpace(int)
151152
* @see #getSpace()
152153
*/
@@ -155,10 +156,10 @@ public boolean hasSpace() {
155156
}
156157

157158
/**
158-
* Returns, whether there is currently room for the given number of bytes in the buffer.
159+
* Tests whether there is currently room for the given number of bytes in the buffer.
159160
*
160161
* @param count the byte count
161-
* @return true if there is space for the given number of bytes
162+
* @return true whether there is currently room for the given number of bytes in the buffer.
162163
* @see #hasSpace()
163164
* @see #getSpace()
164165
*/

0 commit comments

Comments
 (0)