org.avis.util
Class WildcardFilter

java.lang.Object
  extended by org.avis.util.WildcardFilter
All Implemented Interfaces:
Filter<String>

public class WildcardFilter
extends Object
implements Filter<String>

A filter that matches strings against wildcard patterns.

Author:
Matthew Phillips

Field Summary
 
Fields inherited from interface org.avis.util.Filter
MATCH_ALL, MATCH_NONE
 
Constructor Summary
WildcardFilter(Collection<String> wildcardPatterns)
           
WildcardFilter(String... wildcardPatterns)
           
WildcardFilter(String wildcardPattern)
           
 
Method Summary
 boolean isNull()
           
 boolean matches(String string)
          Test if the filter matches.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildcardFilter

public WildcardFilter(String wildcardPattern)

WildcardFilter

public WildcardFilter(String... wildcardPatterns)

WildcardFilter

public WildcardFilter(Collection<String> wildcardPatterns)
Method Detail

isNull

public boolean isNull()

matches

public boolean matches(String string)
Description copied from interface: Filter
Test if the filter matches.

Specified by:
matches in interface Filter<String>
Parameters:
string - The value to test.
Returns:
True if the fiLter matches.


Copyright © 2008 Matthew Phillips. All Rights Reserved.