@@ -47,7 +47,7 @@ private static final class CharacterIterator implements Iterator<Character> {
4747 /**
4848 * Constructs a new iterator for the character range.
4949 *
50- * @param r The character range
50+ * @param r The character range.
5151 */
5252 private CharacterIterator (final CharRange r ) {
5353 range = r ;
@@ -70,19 +70,19 @@ private CharacterIterator(final CharRange r) {
7070 }
7171
7272 /**
73- * Has the iterator not reached the end character yet?
73+ * Tests whether this iterator reached the end character.
7474 *
75- * @return {@code true} if the iterator has yet to reach the character date
75+ * @return {@code true} if the iterator has yet to reach the character date.
7676 */
7777 @ Override
7878 public boolean hasNext () {
7979 return hasNext ;
8080 }
8181
8282 /**
83- * Returns the next character in the iteration
83+ * Returns the next character in the iteration.
8484 *
85- * @return {@link Character} for the next character
85+ * @return {@link Character} for the next character.
8686 */
8787 @ Override
8888 public Character next () {
@@ -142,8 +142,8 @@ public void remove() {
142142 /**
143143 * Constructs a {@link CharRange} over a single character.
144144 *
145- * @param ch only character in this range
146- * @return the new CharRange object
145+ * @param ch only character in this range.
146+ * @return the new CharRange object.
147147 * @since 2.5
148148 */
149149 public static CharRange is (final char ch ) {
@@ -156,9 +156,9 @@ public static CharRange is(final char ch) {
156156 * <p>If start and end are in the wrong order, they are reversed.
157157 * Thus {@code a-e} is the same as {@code e-a}.</p>
158158 *
159- * @param start first character, inclusive, in this range
160- * @param end last character, inclusive, in this range
161- * @return the new CharRange object
159+ * @param start first character, inclusive, in this range.
160+ * @param end last character, inclusive, in this range.
161+ * @return the new CharRange object.
162162 * @since 2.5
163163 */
164164 public static CharRange isIn (final char start , final char end ) {
@@ -171,8 +171,8 @@ public static CharRange isIn(final char start, final char end) {
171171 * <p>A negated range includes everything except that defined by the
172172 * single character.</p>
173173 *
174- * @param ch only character in this range
175- * @return the new CharRange object
174+ * @param ch only character in this range.
175+ * @return the new CharRange object.
176176 * @since 2.5
177177 */
178178 public static CharRange isNot (final char ch ) {
@@ -188,9 +188,9 @@ public static CharRange isNot(final char ch) {
188188 * <p>If start and end are in the wrong order, they are reversed.
189189 * Thus {@code a-e} is the same as {@code e-a}.</p>
190190 *
191- * @param start first character, inclusive, in this range
192- * @param end last character, inclusive, in this range
193- * @return the new CharRange object
191+ * @param start first character, inclusive, in this range.
192+ * @param end last character, inclusive, in this range.
193+ * @return the new CharRange object.
194194 * @since 2.5
195195 */
196196 public static CharRange isNotIn (final char start , final char end ) {
@@ -219,9 +219,9 @@ public static CharRange isNotIn(final char start, final char end) {
219219 * <p>If start and end are in the wrong order, they are reversed.
220220 * Thus {@code a-e} is the same as {@code e-a}.</p>
221221 *
222- * @param start first character, inclusive, in this range
223- * @param end last character, inclusive, in this range
224- * @param negated true to express everything except the range
222+ * @param start first character, inclusive, in this range.
223+ * @param end last character, inclusive, in this range.
224+ * @param negated true to express everything except the range.
225225 */
226226 private CharRange (char start , char end , final boolean negated ) {
227227 if (start > end ) {
@@ -239,8 +239,8 @@ private CharRange(char start, char end, final boolean negated) {
239239 /**
240240 * Is the character specified contained in this range.
241241 *
242- * @param ch the character to check
243- * @return {@code true} if this range contains the input character
242+ * @param ch the character to check.
243+ * @return {@code true} if this range contains the input character.
244244 */
245245 public boolean contains (final char ch ) {
246246 return (ch >= start && ch <= end ) != negated ;
@@ -250,9 +250,9 @@ public boolean contains(final char ch) {
250250 * Are all the characters of the passed in range contained in
251251 * this range.
252252 *
253- * @param range the range to check against
254- * @return {@code true} if this range entirely contains the input range
255- * @throws NullPointerException if {@code null} input
253+ * @param range the range to check against.
254+ * @return {@code true} if this range entirely contains the input range.
255+ * @throws NullPointerException if {@code null} input.
256256 */
257257 public boolean contains (final CharRange range ) {
258258 Objects .requireNonNull (range , "range" );
@@ -273,8 +273,8 @@ public boolean contains(final CharRange range) {
273273 * Compares two CharRange objects, returning true if they represent
274274 * exactly the same range of characters defined in the same way.
275275 *
276- * @param obj the object to compare to
277- * @return true if equal
276+ * @param obj the object to compare to.
277+ * @return true if equal.
278278 */
279279 @ Override
280280 public boolean equals (final Object obj ) {
@@ -291,7 +291,7 @@ public boolean equals(final Object obj) {
291291 /**
292292 * Gets the end character for this character range.
293293 *
294- * @return the end char (inclusive)
294+ * @return the end char (inclusive).
295295 */
296296 public char getEnd () {
297297 return this .end ;
@@ -301,7 +301,7 @@ public char getEnd() {
301301 /**
302302 * Gets the start character for this character range.
303303 *
304- * @return the start char (inclusive)
304+ * @return the start char (inclusive).
305305 */
306306 public char getStart () {
307307 return this .start ;
@@ -310,7 +310,7 @@ public char getStart() {
310310 /**
311311 * Gets a hashCode compatible with the equals method.
312312 *
313- * @return a suitable hashCode
313+ * @return a suitable hashCode.
314314 */
315315 @ Override
316316 public int hashCode () {
@@ -323,7 +323,7 @@ public int hashCode() {
323323 * <p>A negated range includes everything except that defined by the
324324 * start and end characters.</p>
325325 *
326- * @return {@code true} if negated
326+ * @return {@code true} if negated.
327327 */
328328 public boolean isNegated () {
329329 return negated ;
@@ -344,7 +344,7 @@ public Iterator<Character> iterator() {
344344 /**
345345 * Gets a string representation of the character range.
346346 *
347- * @return string representation of this range
347+ * @return string representation of this range.
348348 */
349349 @ Override
350350 public String toString () {
0 commit comments