public final class Patterns extends Object
public static String format(Pattern[] 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 © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.