From: David ‘Bombe’ Roden Date: Sun, 21 Nov 2010 17:22:20 +0000 (+0100) Subject: Expose the elements of the list notification. X-Git-Tag: 0.3.1-RC1~52 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ad1207b7f2d8e7de1ee488a7b8994516c888e7a8;p=Sone.git Expose the elements of the list notification. --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 423bea4..7a0d6f8 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -56,6 +56,15 @@ public class ListNotification extends TemplateNotification { // /** + * Returns the current list of elements. + * + * @return The current list of elements + */ + public List getElements() { + return new ArrayList(elements); + } + + /** * Returns whether there are any new elements. * * @return {@code true} if there are no new elements, {@code false} if there