public final class Patterns extends Object
Modifier and Type | Method and Description |
---|---|
static String |
format(Pattern[] patterns)
Formats the given array of regular expression patterns.
|
@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–2019 AssertJ. All rights reserved.