ProGuard

proguard.io
Class DataEntryNameFilter

java.lang.Object
  extended byproguard.io.DataEntryNameFilter
All Implemented Interfaces:
DataEntryFilter

public class DataEntryNameFilter
extends Object
implements DataEntryFilter

This DataEntryFilter filters data entries based on whether their names match a given StringMatcher.


Constructor Summary
DataEntryNameFilter(StringMatcher stringMatcher)
          Creates a new DataEntryNameFilter.
 
Method Summary
 boolean accepts(DataEntry dataEntry)
          Checks whether the filter accepts the given data entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataEntryNameFilter

public DataEntryNameFilter(StringMatcher stringMatcher)
Creates a new DataEntryNameFilter.

Parameters:
stringMatcher - the string matcher that will be applied to the names of the filtered data entries.
Method Detail

accepts

public boolean accepts(DataEntry dataEntry)
Description copied from interface: DataEntryFilter
Checks whether the filter accepts the given data entry.

Specified by:
accepts in interface DataEntryFilter
Parameters:
dataEntry - the data entry to filter.
Returns:
a boolean indicating whether the filter accepts the given data entry.

ProGuard