public final class Patterns extends Object
@Nonnull public static String format(@Nonnull Pattern[] patterns)
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']
patterns - the array of patterns to format.String containing the formatted array.NullPointerException - if the given array of patterns is null.NullPointerException - if any of the patterns in the given array is null.Copyright © 2014 AssertJ. All rights reserved.