Skip to content

Commit b8fdf4e

Browse files
committed
Better Javadoc
1 parent bcf8fbb commit b8fdf4e

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

src/main/java/org/apache/commons/io/IOCase.java

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public enum IOCase {
6969
private static final long serialVersionUID = -6343169151696340687L;
7070

7171
/**
72-
* Factory method to create an IOCase from a name.
72+
* Looks up an IOCase by name.
7373
*
7474
* @param name the name to find
7575
* @return the IOCase object
@@ -112,8 +112,8 @@ public static IOCase value(final IOCase value, final IOCase defaultValue) {
112112
/**
113113
* Constructs a new instance.
114114
*
115-
* @param name the name
116-
* @param sensitive the sensitivity
115+
* @param name the name.
116+
* @param sensitive the sensitivity.
117117
*/
118118
IOCase(final String name, final boolean sensitive) {
119119
this.name = name;
@@ -127,10 +127,10 @@ public static IOCase value(final IOCase value, final IOCase defaultValue) {
127127
* into account.
128128
* </p>
129129
*
130-
* @param str1 the first string to compare, not null
131-
* @param str2 the second string to compare, not null
132-
* @return true if equal using the case rules
133-
* @throws NullPointerException if either string is null
130+
* @param str1 the first string to compare, not null.
131+
* @param str2 the second string to compare, not null.
132+
* @return true if equal using the case rules.
133+
* @throws NullPointerException if either string is null.
134134
*/
135135
public int checkCompareTo(final String str1, final String str2) {
136136
Objects.requireNonNull(str1, "str1");
@@ -145,9 +145,9 @@ public int checkCompareTo(final String str1, final String str2) {
145145
* into account.
146146
* </p>
147147
*
148-
* @param str the string to check
149-
* @param end the end to compare against
150-
* @return true if equal using the case rules, false if either input is null
148+
* @param str the string to check.
149+
* @param end the end to compare against.
150+
* @return true if equal using the case rules, false if either input is null.
151151
*/
152152
public boolean checkEndsWith(final String str, final String end) {
153153
if (str == null || end == null) {
@@ -164,9 +164,9 @@ public boolean checkEndsWith(final String str, final String end) {
164164
* into account.
165165
* </p>
166166
*
167-
* @param str1 the first string to compare, not null
168-
* @param str2 the second string to compare, not null
169-
* @return true if equal using the case rules
167+
* @param str1 the first string to compare.
168+
* @param str2 the second string to compare.
169+
* @return true if equal using the case rules.
170170
*/
171171
public boolean checkEquals(final String str1, final String str2) {
172172
return str1 == str2 || str1 != null && (sensitive ? str1.equals(str2) : str1.equalsIgnoreCase(str2));
@@ -180,11 +180,11 @@ public boolean checkEquals(final String str1, final String str2) {
180180
* but takes case-sensitivity into account.
181181
* </p>
182182
*
183-
* @param str the string to check, not null
184-
* @param strStartIndex the index to start at in str
185-
* @param search the start to search for, not null
183+
* @param str the string to check.
184+
* @param strStartIndex the index to start at in str.
185+
* @param search the start to search for.
186186
* @return the first index of the search String,
187-
* -1 if no match or {@code null} string input
187+
* -1 if no match or {@code null} string input.
188188
* @since 2.0
189189
*/
190190
public int checkIndexOf(final String str, final int strStartIndex, final String search) {
@@ -208,11 +208,11 @@ public int checkIndexOf(final String str, final int strStartIndex, final String
208208
* but takes case-sensitivity into account.
209209
* </p>
210210
*
211-
* @param str the string to check, not null
212-
* @param strStartIndex the index to start at in str
213-
* @param search the start to search for, not null
214-
* @return true if equal using the case rules
215-
* @throws NullPointerException if either string is null
211+
* @param str the string to check, not null.
212+
* @param strStartIndex the index to start at in str.
213+
* @param search the start to search for, not null.
214+
* @return true if equal using the case rules.
215+
* @throws NullPointerException if either string is null.
216216
*/
217217
public boolean checkRegionMatches(final String str, final int strStartIndex, final String search) {
218218
return str.regionMatches(!sensitive, strStartIndex, search, 0, search.length());
@@ -225,9 +225,9 @@ public boolean checkRegionMatches(final String str, final int strStartIndex, fin
225225
* into account.
226226
* </p>
227227
*
228-
* @param str the string to check
229-
* @param start the start to compare against
230-
* @return true if equal using the case rules, false if either input is null
228+
* @param str the string to check.
229+
* @param start the start to compare against.
230+
* @return true if equal using the case rules, false if either input is null.
231231
*/
232232
public boolean checkStartsWith(final String str, final String start) {
233233
return str != null && start != null && str.regionMatches(!sensitive, 0, start, 0, start.length());
@@ -245,7 +245,7 @@ public String getName() {
245245
/**
246246
* Does the object represent case-sensitive comparison.
247247
*
248-
* @return true if case-sensitive
248+
* @return true if case-sensitive.
249249
*/
250250
public boolean isCaseSensitive() {
251251
return sensitive;
@@ -255,7 +255,7 @@ public boolean isCaseSensitive() {
255255
* Replaces the enumeration from the stream with a real one.
256256
* This ensures that the correct flag is set for SYSTEM.
257257
*
258-
* @return the resolved object
258+
* @return the resolved object.
259259
*/
260260
private Object readResolve() {
261261
return forName(name);
@@ -264,7 +264,7 @@ private Object readResolve() {
264264
/**
265265
* Gets a string describing the sensitivity.
266266
*
267-
* @return a string describing the sensitivity
267+
* @return a string describing the sensitivity.
268268
*/
269269
@Override
270270
public String toString() {

0 commit comments

Comments
 (0)