com.google.common.base.Predicate<WarcRecord>, Filter<WarcRecord>, FlyweightPrototype<Filter<WarcRecord>>, java.util.function.Predicate<WarcRecord>public class IsHttpResponse extends AbstractFilter<WarcRecord>
| Modifier and Type | Field | Description |
|---|---|---|
static IsHttpResponse |
INSTANCE |
FILTER_PACKAGE_NAME| Modifier and Type | Method | Description |
|---|---|---|
boolean |
apply(WarcRecord x) |
Apply the filter to a WarcRecord
|
Filter<WarcRecord> |
copy() |
|
java.lang.String |
toString() |
A string representation of the state of this object.
|
static IsHttpResponse |
valueOf(java.lang.String emptySpec) |
Get a new IsHttpResponse that will accept only WarcRecords that are http/https responses.
|
toStringpublic static final IsHttpResponse INSTANCE
public boolean apply(WarcRecord x)
x - the WarcRecord to be filteredtrue if x is an http/https response.public static IsHttpResponse valueOf(java.lang.String emptySpec)
emptySpec - an empty String.IsHttpResponse that will accept only WarcRecords that are http/https responses.public java.lang.String toString()
toString in class java.lang.Objectpublic Filter<WarcRecord> copy()