Package org.fest.swing.util
Class Patterns
java.lang.Object
org.fest.swing.util.Patterns
Understands utility methods for regular expression patterns.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Patterns
private Patterns()
-
-
Method Details
-
format
Formats the given array of regular expression patterns.For example, the array
Pattern[] patterns = { Pattern.compile("hello"), Pattern.compile("world") };
will be formatted as['hello', 'world']
- Parameters:
patterns
- the array of patterns to format.- Returns:
- the
String
containing the formatted array. - Throws:
NullPointerException
- if the given array of patterns isnull
.NullPointerException
- if any of the patterns in the given array isnull
.
-
patternValueOf
-