Schnittstelle MutableActivityRepository<A extends Activity>

Typparameter:
A - the activity type
Alle Superschnittstellen:
ActivityRepository<A>, EventTarget
Alle bekannten Implementierungsklassen:
IntervalTreeActivityRepository, ListActivityRepository, MutableActivityRepositoryBase

public interface MutableActivityRepository<A extends Activity> extends ActivityRepository<A>
The required interface for a repository that is also mutable (activities can be added and removed).
Seit:
1.0
  • Methodendetails

    • addActivity

      void addActivity(ActivityRef<A> activity)
      Adds the given activity to the repository.
      Parameter:
      activity - the activity
      Seit:
      1.0
    • removeActivity

      void removeActivity(ActivityRef<A> activity)
      Removes the given activity from the repository.
      Parameter:
      activity - the activity
      Seit:
      1.0
    • clearActivities

      void clearActivities()
      Removes all activities from all layers from the repository.
      Seit:
      1.0
    • clearActivities

      void clearActivities(Layer layer)
      Removes the activities on the given layer from the repository.
      Parameter:
      layer - the layer to clear
      Seit:
      1.0