From ad1207b7f2d8e7de1ee488a7b8994516c888e7a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 21 Nov 2010 18:22:20 +0100 Subject: [PATCH] Expose the elements of the list notification. --- .../java/net/pterodactylus/sone/notify/ListNotification.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.7.4