From a8cd3a7a57a70f354aa248e4935341e10f7ef89e Mon Sep 17 00:00:00 2001 From: Hammy Date: Fri, 13 Aug 2021 11:28:17 +0100 Subject: [PATCH] Add javadocs --- src/main/java/me/goudham/Contents.java | 2 +- src/main/java/me/goudham/EventManager.java | 6 +++--- .../java/me/goudham/WindowsOrUnixClipboardListener.java | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/goudham/Contents.java b/src/main/java/me/goudham/Contents.java index 4375c54..a0dc218 100644 --- a/src/main/java/me/goudham/Contents.java +++ b/src/main/java/me/goudham/Contents.java @@ -26,7 +26,7 @@ enum Contents { private final DataFlavor dataFlavor; Contents(DataFlavor dataFlavor) { - this.dataFlavor = dataFlavor; + this.dataFlavor = dataFlavor; } DataFlavor getDataFlavor() { diff --git a/src/main/java/me/goudham/EventManager.java b/src/main/java/me/goudham/EventManager.java index 085e469..e8e9da7 100644 --- a/src/main/java/me/goudham/EventManager.java +++ b/src/main/java/me/goudham/EventManager.java @@ -75,7 +75,7 @@ class EventManager { * Produces {@link String} change notifications to all consumers listening * * @param clipboardContent The previous clipboard contents - * @param stringContent {@link String} to be consumed + * @param stringContent {@link String} to be consumed */ void notifyTextEvent(ClipboardContent clipboardContent, String stringContent) { for (TextEvent textEvent : textEventListener) { @@ -87,7 +87,7 @@ class EventManager { * Produces {@link BufferedImage} change notifications to all consumers listening * * @param clipboardContent The previous clipboard contents - * @param imageContent {@link BufferedImage} to be consumed + * @param imageContent {@link BufferedImage} to be consumed */ void notifyImageEvent(ClipboardContent clipboardContent, BufferedImage imageContent) { for (ImageEvent imageEvent : imageEventListener) { @@ -99,7 +99,7 @@ class EventManager { * Produces {@link List} of {@link File} change notifications to all consumers listening * * @param clipboardContent The previous clipboard contents - * @param fileContent {@link List} of {@link File} to be consumed + * @param fileContent {@link List} of {@link File} to be consumed */ void notifyFilesEvent(ClipboardContent clipboardContent, List fileContent) { for (FileEvent fileEvent : fileEventListener) { diff --git a/src/main/java/me/goudham/WindowsOrUnixClipboardListener.java b/src/main/java/me/goudham/WindowsOrUnixClipboardListener.java index f618ae8..4884d21 100644 --- a/src/main/java/me/goudham/WindowsOrUnixClipboardListener.java +++ b/src/main/java/me/goudham/WindowsOrUnixClipboardListener.java @@ -44,6 +44,8 @@ class WindowsOrUnixClipboardListener extends ClipboardListener implements Runnab } /** + * Detect changes from the given {@link Clipboard} and send event notifications to all users listening + * * @param oldClipboard The clipboard that is no longer owned * @param oldClipboardContents The old contents of the clipboard * @param newClipboardContents The new contents of the clipboard