Package ch.grengine.source
Class SourceSetState
java.lang.Object
ch.grengine.source.SourceSetState
Helper class for tracking updates of a set of
Source.- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggets last checked.longgets last modified.gets the source set.returns a new instance with given source set and updated last checked and last modified.
-
Constructor Details
-
SourceSetState
constructor from source set.- Parameters:
sourceSet- source set- Throws:
NullPointerException- if the source set is null- Since:
- 1.0
-
-
Method Details
-
getSourceSet
gets the source set.- Returns:
- source set
- Since:
- 1.0
-
getLastChecked
public long getLastChecked()gets last checked.- Returns:
- last checked
- Since:
- 1.0
-
getLastModified
public long getLastModified()gets last modified.- Returns:
- last modified
- Since:
- 1.0
-
update
returns a new instance with given source set and updated last checked and last modified.- Parameters:
sourceSetNew- source set- Returns:
- new instance
- Throws:
NullPointerException- if the new source set is null- Since:
- 1.0
-