This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-text.git
The following commit(s) were added to refs/heads/master by this push: new eb11cc4 Sort members. eb11cc4 is described below commit eb11cc484ea2c6fc3a4c60674ab2d2f8d66e12e6 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Dec 11 12:20:54 2019 -0500 Sort members. --- .../commons/text/matcher/StringMatcherFactory.java | 48 +++++++++++----------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/main/java/org/apache/commons/text/matcher/StringMatcherFactory.java b/src/main/java/org/apache/commons/text/matcher/StringMatcherFactory.java index 81a9542..1dc5b15 100644 --- a/src/main/java/org/apache/commons/text/matcher/StringMatcherFactory.java +++ b/src/main/java/org/apache/commons/text/matcher/StringMatcherFactory.java @@ -25,35 +25,31 @@ package org.apache.commons.text.matcher; public final class StringMatcherFactory { /** - * Defines the singleton for this class. - */ - public static final StringMatcherFactory INSTANCE = new StringMatcherFactory(); - - /** - * Matches the same characters as StringTokenizer, namely space, tab, newline, form feed. + * Matches the comma character. */ - private static final AbstractStringMatcher.CharSetMatcher SPLIT_MATCHER = new AbstractStringMatcher.CharSetMatcher( - " \t\n\r\f".toCharArray()); + private static final AbstractStringMatcher.CharMatcher COMMA_MATCHER = new AbstractStringMatcher.CharMatcher(','); /** - * Matches the comma character. + * Matches the double quote character. */ - private static final AbstractStringMatcher.CharMatcher COMMA_MATCHER = new AbstractStringMatcher.CharMatcher(','); + private static final AbstractStringMatcher.CharMatcher DOUBLE_QUOTE_MATCHER = new AbstractStringMatcher.CharMatcher( + '"'); /** - * Matches the tab character. + * Defines the singleton for this class. */ - private static final AbstractStringMatcher.CharMatcher TAB_MATCHER = new AbstractStringMatcher.CharMatcher('\t'); + public static final StringMatcherFactory INSTANCE = new StringMatcherFactory(); /** - * Matches the space character. + * Matches no characters. */ - private static final AbstractStringMatcher.CharMatcher SPACE_MATCHER = new AbstractStringMatcher.CharMatcher(' '); + private static final AbstractStringMatcher.NoMatcher NONE_MATCHER = new AbstractStringMatcher.NoMatcher(); /** - * Matches the String trim() whitespace characters. + * Matches the single or double quote character. */ - private static final AbstractStringMatcher.TrimMatcher TRIM_MATCHER = new AbstractStringMatcher.TrimMatcher(); + private static final AbstractStringMatcher.CharSetMatcher QUOTE_MATCHER = new AbstractStringMatcher.CharSetMatcher( + "'\"".toCharArray()); /** * Matches the double quote character. @@ -62,21 +58,25 @@ public final class StringMatcherFactory { '\''); /** - * Matches the double quote character. + * Matches the space character. */ - private static final AbstractStringMatcher.CharMatcher DOUBLE_QUOTE_MATCHER = new AbstractStringMatcher.CharMatcher( - '"'); + private static final AbstractStringMatcher.CharMatcher SPACE_MATCHER = new AbstractStringMatcher.CharMatcher(' '); /** - * Matches the single or double quote character. + * Matches the same characters as StringTokenizer, namely space, tab, newline, form feed. */ - private static final AbstractStringMatcher.CharSetMatcher QUOTE_MATCHER = new AbstractStringMatcher.CharSetMatcher( - "'\"".toCharArray()); + private static final AbstractStringMatcher.CharSetMatcher SPLIT_MATCHER = new AbstractStringMatcher.CharSetMatcher( + " \t\n\r\f".toCharArray()); /** - * Matches no characters. + * Matches the tab character. */ - private static final AbstractStringMatcher.NoMatcher NONE_MATCHER = new AbstractStringMatcher.NoMatcher(); + private static final AbstractStringMatcher.CharMatcher TAB_MATCHER = new AbstractStringMatcher.CharMatcher('\t'); + + /** + * Matches the String trim() whitespace characters. + */ + private static final AbstractStringMatcher.TrimMatcher TRIM_MATCHER = new AbstractStringMatcher.TrimMatcher(); /** * No need to build instances for now.