You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2014/08/10 20:54:06 UTC
svn commit: r1617142 -
/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java
Author: sebb
Date: Sun Aug 10 18:54:05 2014
New Revision: 1617142
URL: http://svn.apache.org/r1617142
Log:
Add basic Javadoc
Modified:
httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java
Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java?rev=1617142&r1=1617141&r2=1617142&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java Sun Aug 10 18:54:05 2014
@@ -32,6 +32,9 @@ package org.apache.http.util;
*/
public final class TextUtils {
+ /**
+ * Returns true if the parameter is null or of zero length
+ */
public static boolean isEmpty(final CharSequence s) {
if (s == null) {
return true;
@@ -39,6 +42,9 @@ public final class TextUtils {
return s.length() == 0;
}
+ /**
+ * Returns true if the parameter is null or contains only whitespace
+ */
public static boolean isBlank(final CharSequence s) {
if (s == null) {
return true;