Package proguard.io
Class DataEntryNameFilter
- java.lang.Object
-
- proguard.io.DataEntryNameFilter
-
- All Implemented Interfaces:
DataEntryFilter
public class DataEntryNameFilter extends java.lang.Object implements DataEntryFilter
ThisDataEntryFilterfilters data entries based on whether their names match a givenStringMatcher.
-
-
Constructor Summary
Constructors Constructor Description DataEntryNameFilter(StringMatcher stringMatcher)Creates a new DataEntryNameFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(DataEntry dataEntry)Checks whether the filter accepts the given data entry.
-
-
-
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:DataEntryFilterChecks whether the filter accepts the given data entry.- Specified by:
acceptsin interfaceDataEntryFilter- Parameters:
dataEntry- the data entry to filter.- Returns:
- a boolean indicating whether the filter accepts the given data entry.
-
-