Class SourceSetState

java.lang.Object
ch.grengine.source.SourceSetState

public class SourceSetState extends Object
Helper class for tracking updates of a set of Source.
Since:
1.0
Author:
Alain Stalder, Made in Switzerland.
  • Constructor Details

    • SourceSetState

      public SourceSetState(Set<Source> sourceSet)
      constructor from source set.
      Parameters:
      sourceSet - source set
      Throws:
      NullPointerException - if the source set is null
      Since:
      1.0
  • Method Details

    • getSourceSet

      public Set<Source> 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

      public SourceSetState update(Set<Source> sourceSetNew)
      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