Package ch.grengine.source
Class BaseSource
java.lang.Object
ch.grengine.source.BaseSource
- All Implemented Interfaces:
Source
- Direct Known Subclasses:
DefaultFileSource,DefaultTextSource,DefaultUrlSource
Abstract base implementation of the
Source interface.- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
the source id.- Since:
- 1.0
-
-
Constructor Details
-
BaseSource
protected BaseSource()protected constructor.- Since:
- 1.0
-
-
Method Details
-
getId
gets the protected member variableid. -
getLastModified
public long getLastModified()always returns 0.- Specified by:
getLastModifiedin interfaceSource- Returns:
- always 0
- Since:
- 1.0
-
equals
implementation based on the protected member variableid. -
hashCode
public int hashCode()implementation based on the protected member variableid. -
toString
Description copied from interface:Sourcereturns a string suitable for logging.
-