From e5618bc49405d9c53016393c8765e14125a0e23f Mon Sep 17 00:00:00 2001 From: Niall Pemberton Date: Fri, 22 Jan 2010 10:52:07 +0000 Subject: [PATCH] Javadoc updates only git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902053 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/CharRange.java | 4 ++++ src/main/java/org/apache/commons/lang3/ClassUtils.java | 6 ++++++ src/main/java/org/apache/commons/lang3/EnumUtils.java | 6 ++++-- src/main/java/org/apache/commons/lang3/Range.java | 4 ++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/CharRange.java b/src/main/java/org/apache/commons/lang3/CharRange.java index f74aa4406..f63c8a56d 100644 --- a/src/main/java/org/apache/commons/lang3/CharRange.java +++ b/src/main/java/org/apache/commons/lang3/CharRange.java @@ -79,6 +79,7 @@ public final class CharRange implements Serializable { *

Constructs a CharRange over a single character.

* * @param ch only character in this range + * @return the new CharRange object * @see CharRange#CharRange(char, char, boolean) */ public static CharRange is(char ch) { @@ -89,6 +90,7 @@ public final class CharRange implements Serializable { *

Constructs a negated CharRange over a single character.

* * @param ch only character in this range + * @return the new CharRange object * @see CharRange#CharRange(char, char, boolean) */ public static CharRange isNot(char ch) { @@ -100,6 +102,7 @@ public final class CharRange implements Serializable { * * @param start first character, inclusive, in this range * @param end last character, inclusive, in this range + * @return the new CharRange object * @see CharRange#CharRange(char, char, boolean) */ public static CharRange isIn(char start, char end) { @@ -111,6 +114,7 @@ public final class CharRange implements Serializable { * * @param start first character, inclusive, in this range * @param end last character, inclusive, in this range + * @return the new CharRange object * @see CharRange#CharRange(char, char, boolean) */ public static CharRange isNotIn(char start, char end) { diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index b8a9cf267..e24954b1b 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -321,6 +321,12 @@ public class ClassUtils { return new ArrayList>(interfacesFound); } + /** + * Get the interfaces for the specified class. + * + * @param cls the class to look up, may be null + * @param interfacesFound the Set of interfaces for the class + */ private static void getAllInterfaces(Class cls, HashSet> interfacesFound) { while (cls != null) { Class[] interfaces = cls.getInterfaces(); diff --git a/src/main/java/org/apache/commons/lang3/EnumUtils.java b/src/main/java/org/apache/commons/lang3/EnumUtils.java index 90c1a4747..8bb566fd4 100644 --- a/src/main/java/org/apache/commons/lang3/EnumUtils.java +++ b/src/main/java/org/apache/commons/lang3/EnumUtils.java @@ -71,7 +71,8 @@ public class EnumUtils { * a valid enum without needing to catch the exception. * * @param enumClass the class of the enum to get, not null - * @return the map of enum names to enums, never null + * @param enumName the enum name + * @return true if the enum name is valid, otherwise false */ public static > boolean isValidEnum(Class enumClass, String enumName) { try { @@ -89,7 +90,8 @@ public class EnumUtils { * for an invalid enum name. * * @param enumClass the class of the enum to get, not null - * @return the map of enum names to enums, never null + * @param enumName the enum name + * @return the enum or null if not found */ public static > E getEnum(Class enumClass, String enumName) { try { diff --git a/src/main/java/org/apache/commons/lang3/Range.java b/src/main/java/org/apache/commons/lang3/Range.java index 7b20ca3c6..4c1e0f983 100644 --- a/src/main/java/org/apache/commons/lang3/Range.java +++ b/src/main/java/org/apache/commons/lang3/Range.java @@ -67,6 +67,7 @@ public final class Range implements Serializable { * determine where values lie in the range.

* * @param element the value to use for this range, must not be null + * @return the new range object * @throws IllegalArgumentException if the value is null * @throws ClassCastException if the value is not Comparable */ @@ -85,6 +86,7 @@ public final class Range implements Serializable { * * @param element1 first value that defines the edge of the range, inclusive * @param element2 second value that defines the edge of the range, inclusive + * @return the new range object * @throws IllegalArgumentException if either value is null * @throws ClassCastException if either value is not Comparable */ @@ -100,6 +102,7 @@ public final class Range implements Serializable { * * @param element the value to use for this range, must not be null * @param c comparator to be used + * @return the new range object * @throws IllegalArgumentException if the value is null */ public static Range is(T element, Comparator c) { @@ -118,6 +121,7 @@ public final class Range implements Serializable { * @param element1 first value that defines the edge of the range, inclusive * @param element2 second value that defines the edge of the range, inclusive * @param c comparator to be used + * @return the new range object * @throws IllegalArgumentException if either value is null */ public static Range between(T element1, T element2, Comparator c) {