org.powermock.core
Class WildcardMatcher

java.lang.Object
  extended by org.powermock.core.WildcardMatcher

public class WildcardMatcher
extends Object

Wildcard matcher.


Constructor Summary
WildcardMatcher()
           
 
Method Summary
static boolean matches(String text, String pattern)
          Performs a wildcard matching for the text and pattern provided.
static boolean matchesAny(Collection<String> collectionOfTextToMatch, String pattern)
           
static boolean matchesAny(Iterable<String> collectionOfTextToMatch, String pattern)
           
static boolean matchesAny(String[] collectionOfTextToMatch, String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildcardMatcher

public WildcardMatcher()
Method Detail

matches

public static boolean matches(String text,
                              String pattern)
Performs a wildcard matching for the text and pattern provided.

Parameters:
text - the text to be tested for matches.
pattern - the pattern to be matched for. This can contain the wildcard character '*' (asterisk).
Returns:
true if a match is found, false otherwise.

matchesAny

public static boolean matchesAny(Collection<String> collectionOfTextToMatch,
                                 String pattern)

matchesAny

public static boolean matchesAny(Iterable<String> collectionOfTextToMatch,
                                 String pattern)

matchesAny

public static boolean matchesAny(String[] collectionOfTextToMatch,
                                 String pattern)


Copyright © 2007-2012. All Rights Reserved.