Repository: logging-log4j2
Updated Branches:
  refs/heads/master bd23c3050 -> 13b8b0fff


Sort members.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/13b8b0ff
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/13b8b0ff
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/13b8b0ff

Branch: refs/heads/master
Commit: 13b8b0fffe8a642f64d6de90bca2e64e13c00595
Parents: bd23c30
Author: ggregory <[email protected]>
Authored: Thu Sep 17 23:38:46 2015 -0700
Committer: ggregory <[email protected]>
Committed: Thu Sep 17 23:38:46 2015 -0700

----------------------------------------------------------------------
 .../org/apache/logging/log4j/util/Strings.java  | 80 ++++++++++----------
 1 file changed, 40 insertions(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/13b8b0ff/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java 
b/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java
index 8ff6ba5..44791d4 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java
@@ -28,7 +28,27 @@ public final class Strings {
      */
     public static final String EMPTY = "";
 
-    private Strings() {
+    /**
+     * Returns a double quoted string.
+     * 
+     * @param str
+     *        a String
+     * @return {@code "str"}
+     */
+    public static String dquote(final String str) {
+        return Chars.DQUOTE + str + Chars.DQUOTE;
+    }
+
+    /**
+     * Checks if a String is blank. A blank string is one that is {@code 
null}, empty, or when trimmed using
+     * {@link String#trim()} is empty.
+     *
+     * @param s
+     *        the String to check, may be {@code null}
+     * @return {@code true} if the String is {@code null}, empty, or trims to 
empty.
+     */
+    public static boolean isBlank(final String s) {
+        return s == null || s.trim().isEmpty();
     }
 
     /**
@@ -62,6 +82,17 @@ public final class Strings {
     }
 
     /**
+     * Checks if a String is not blank. The opposite of {@link 
#isBlank(String)}.
+     *
+     * @param s
+     *        the String to check, may be {@code null}
+     * @return {@code true} if the String is non-{@code null} and has content 
after being trimmed.
+     */
+    public static boolean isNotBlank(final String s) {
+        return !isBlank(s);
+    }
+
+    /**
      * <p>
      * Checks if a CharSequence is not empty ("") and not null.
      * </p>
@@ -87,26 +118,14 @@ public final class Strings {
     }
 
     /**
-     * Checks if a String is blank. A blank string is one that is {@code 
null}, empty, or when trimmed using
-     * {@link String#trim()} is empty.
-     *
-     * @param s
-     *        the String to check, may be {@code null}
-     * @return {@code true} if the String is {@code null}, empty, or trims to 
empty.
-     */
-    public static boolean isBlank(final String s) {
-        return s == null || s.trim().isEmpty();
-    }
-
-    /**
-     * Checks if a String is not blank. The opposite of {@link 
#isBlank(String)}.
-     *
-     * @param s
-     *        the String to check, may be {@code null}
-     * @return {@code true} if the String is non-{@code null} and has content 
after being trimmed.
+     * Returns a quoted string.
+     * 
+     * @param str
+     *        a String
+     * @return {@code 'str'}
      */
-    public static boolean isNotBlank(final String s) {
-        return !isBlank(s);
+    public static String quote(final String str) {
+        return Chars.QUOTE + str + Chars.QUOTE;
     }
 
     /**
@@ -139,25 +158,6 @@ public final class Strings {
         return isEmpty(ts) ? null : ts;
     }
 
-    /**
-     * Returns a quoted string.
-     * 
-     * @param str
-     *        a String
-     * @return {@code 'str'}
-     */
-    public static String quote(final String str) {
-        return Chars.QUOTE + str + Chars.QUOTE;
-    }
-
-    /**
-     * Returns a double quoted string.
-     * 
-     * @param str
-     *        a String
-     * @return {@code "str"}
-     */
-    public static String dquote(final String str) {
-        return Chars.DQUOTE + str + Chars.DQUOTE;
+    private Strings() {
     }
 }

Reply via email to