projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'profile-fields' into next
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
notify
/
ListNotification.java
diff --git
a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java
b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java
index
423bea4
..
7d3e3c7
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/notify/ListNotification.java
+++ b/
src/main/java/net/pterodactylus/sone/notify/ListNotification.java
@@
-49,6
+49,7
@@
public class ListNotification<T> extends TemplateNotification {
public ListNotification(String id, String key, Template template) {
super(id, template);
template.set(key, elements);
public ListNotification(String id, String key, Template template) {
super(id, template);
template.set(key, elements);
+ template.set("notification", this);
}
//
}
//
@@
-56,6
+57,15
@@
public class ListNotification<T> extends TemplateNotification {
//
/**
//
/**
+ * Returns the current list of elements.
+ *
+ * @return The current list of elements
+ */
+ public List<T> getElements() {
+ return new ArrayList<T>(elements);
+ }
+
+ /**
* Returns whether there are any new elements.
*
* @return {@code true} if there are no new elements, {@code false} if there
* Returns whether there are any new elements.
*
* @return {@code true} if there are no new elements, {@code false} if there