org.assertj.swing.util
Class Patterns

java.lang.Object
  extended by org.assertj.swing.util.Patterns

public final class Patterns
extends Object

Utility methods for regular expression patterns.

Author:
Alex Ruiz

Method Summary
static String format(Pattern[] patterns)
           Formats the given array of regular expression patterns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

format

@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']
 

Parameters:
patterns - the array of patterns to format.
Returns:
the String containing the formatted array.
Throws:
NullPointerException - if the given array of patterns is null.
NullPointerException - if any of the patterns in the given array is null.


Copyright © 2014–2015 AssertJ. All rights reserved.