Package it.unimi.dsi.law.warc.filters
Class AbstractFilter<T>
java.lang.Object
it.unimi.dsi.law.warc.filters.AbstractFilter<T>
- Direct Known Subclasses:
ContentTypeStartsWith,DigestEquals,DuplicateSegmentsLessThan,HostEndsWith,HostEquals,IsHttpResponse,IsProbablyBinary,PathEndsWithOneOf,SchemeEquals,StatusCategory,URLEquals,URLMatchesRegex,URLShorterThan
public abstract class AbstractFilter<T> extends Object implements Filter<T>
An abstract implementation of a
Filter providing a method
that helps in implementing properly Object.toString() for atomic (i.e., class-based) filters.-
Field Summary
Fields inherited from interface it.unimi.dsi.law.warc.filters.Filter
FILTER_PACKAGE_NAME -
Constructor Summary
Constructors Constructor Description AbstractFilter() -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Predicate
apply, equals, test
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
toString
A helper method that generates a string version of this filter (mainly useful for atomic, i.e., class-based, filters).The output format is
<classname>(<arg>, <arg>, ...)when <classname> is the simple filter class name, if the filter class belongs to theFilter.FILTER_PACKAGE_NAMEpackage, or the fully qualified filter class name otherwise, and the arguments are the string representations of the arguments of this method.- Parameters:
arg- arguments for the string representation above.- Returns:
- the string representation specified above.
-