Package it.unipd.dei.eis.data.entities
Class DataEntity
- java.lang.Object
-
- it.unipd.dei.eis.data.entities.DataEntity
-
- All Implemented Interfaces:
IFilterable
- Direct Known Subclasses:
CsvDataEntity,JsonDataEntity,TermsDataEntity,TheGuardianDataEntity
public abstract class DataEntity extends Object implements IFilterable
An abstract filterable data entity.
-
-
Constructor Summary
Constructors Constructor Description DataEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanafter(Date date)Filters the object by a date.booleanbefore(Date date)Filters the object by a date.booleancontains(String s)Filters the object by a string.
-
-
-
Method Detail
-
contains
public boolean contains(String s)
Filters the object by a string.- Specified by:
containsin interfaceIFilterable- Parameters:
s- the string to filter by- Returns:
- true if the object respects the filter, false otherwise
-
before
public boolean before(Date date)
Filters the object by a date.- Specified by:
beforein interfaceIFilterable- Parameters:
date- the date to filter from- Returns:
- true if the object respects the filter, false otherwise
-
after
public boolean after(Date date)
Filters the object by a date.- Specified by:
afterin interfaceIFilterable- Parameters:
date- the date to filter to- Returns:
- true if the object respects the filter, false otherwise
-
-