Added extra alternatives as @see links in toString conversions

improvement suggested by Henning Schmiedehausen


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-08-13 23:30:58 +00:00
parent 076630818f
commit 20c35a1d87
2 changed files with 10 additions and 2 deletions

View File

@ -68,7 +68,7 @@
* @author Stephen Colebourne
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
* @since 1.0
* @version $Id: ObjectUtils.java,v 1.16 2003/08/01 20:45:17 scolebourne Exp $
* @version $Id: ObjectUtils.java,v 1.17 2003/08/13 23:30:58 scolebourne Exp $
*/
public class ObjectUtils {
@ -220,6 +220,8 @@ public static StringBuffer appendIdentityToString(StringBuffer buffer, Object ob
* ObjectUtils.toString(Boolean.TRUE) = "true"
* </pre>
*
* @see StringUtils#defaultString(String)
* @see String#valueOf(Object)
* @param obj the Object to <code>toString</code>, may be null
* @return the passed in Object's toString, or nullStr if <code>null</code> input
*/
@ -239,6 +241,8 @@ public static String toString(Object obj) {
* ObjectUtils.toString(Boolean.TRUE, "null") = "true"
* </pre>
*
* @see StringUtils#defaultString(String,String)
* @see String#valueOf(Object)
* @param obj the Object to <code>toString</code>, may be null
* @param nullStr the String to return if <code>null</code> input, may be null
* @return the passed in Object's toString, or nullStr if <code>null</code> input

View File

@ -144,7 +144,7 @@
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
* @author Phil Steitz
* @since 1.0
* @version $Id: StringUtils.java,v 1.92 2003/08/13 21:32:10 ggregory Exp $
* @version $Id: StringUtils.java,v 1.93 2003/08/13 23:30:58 scolebourne Exp $
*/
public class StringUtils {
// Performance testing notes (JDK 1.4, Jul03, scolebourne)
@ -3877,6 +3877,8 @@ public static boolean isWhitespace(String str) {
* StringUtils.defaultString("bat") = "bat"
* </pre>
*
* @see ObjectUtils#toString(Object)
* @see String#valueOf(Object)
* @param str the String to check, may be null
* @return the passed in String, or the empty String if it
* was <code>null</code>
@ -3895,6 +3897,8 @@ public static String defaultString(String str) {
* StringUtils.defaultString("bat", "null") = "bat"
* </pre>
*
* @see ObjectUtils#toString(Object,String)
* @see String#valueOf(Object)
* @param str the String to check, may be null
* @param defaultStr the default String to return
* if the input is <code>null</code>, may be null