Package it.unimi.dsi.law.warc.filters
Class SchemeEquals
public class SchemeEquals extends AbstractFilter<URI>
Accepts only URIs whose scheme equals a certain string (typically,
http).
Note that apply(URI) will throw an IllegalArgumentException
if the argument has a null scheme.
-
Field Summary
Fields inherited from interface it.unimi.dsi.law.warc.filters.Filter
FILTER_PACKAGE_NAME -
Constructor Summary
Constructors Constructor Description SchemeEquals(String scheme)Creates a filter that only accepts URIs with a given scheme. -
Method Summary
Methods inherited from class it.unimi.dsi.law.warc.filters.AbstractFilter
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.base.Predicate
test
-
Constructor Details
-
SchemeEquals
Creates a filter that only accepts URIs with a given scheme.- Parameters:
scheme- the accepted scheme.
-
-
Method Details