[New] Added default implementations in Observer

This commit is contained in:
Robert von Burg 2022-06-30 20:43:20 +02:00
parent 95815c6f84
commit 433d4dad4e
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 9 additions and 3 deletions

View File

@ -21,9 +21,15 @@ import li.strolch.model.StrolchRootElement;
public interface Observer {
void add(String key, List<StrolchRootElement> elements) throws Exception;
default void add(String key, List<StrolchRootElement> elements) throws Exception {
// empty implementation
}
void update(String key, List<StrolchRootElement> elements) throws Exception;
default void update(String key, List<StrolchRootElement> elements) throws Exception {
// empty implementation
}
void remove(String key, List<StrolchRootElement> elements) throws Exception;
default void remove(String key, List<StrolchRootElement> elements) throws Exception {
// empty implementation
}
}