Package it.unimi.dsi.law.warc.filters
Class URLShorterThan
public class URLShorterThan extends AbstractFilter<URI>
Accepts only URIs whose overall length is below a given threshold.
-
Field Summary
Fields inherited from interface it.unimi.dsi.law.warc.filters.Filter
FILTER_PACKAGE_NAME
-
Constructor Summary
Constructors Constructor Description URLShorterThan(int threshold)
Creates a filter that only accepts URLs shorter than the given threshold. -
Method Summary
Methods inherited from class it.unimi.dsi.law.warc.filters.AbstractFilter
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.base.Predicate
test
-
Constructor Details
-
URLShorterThan
public URLShorterThan(int threshold)Creates a filter that only accepts URLs shorter than the given threshold.- Parameters:
threshold
- the acceptance threshold.
-
-
Method Details