From 3da56bbd453cdc6d8d6a75d4a583e70e2f705fb6 Mon Sep 17 00:00:00 2001 From: Hammy Date: Thu, 5 Aug 2021 10:42:22 +0100 Subject: [PATCH] Add extra constructor --- src/main/java/me/goudham/MyClipboardContent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/goudham/MyClipboardContent.java b/src/main/java/me/goudham/MyClipboardContent.java index e7a7109..357b1a2 100644 --- a/src/main/java/me/goudham/MyClipboardContent.java +++ b/src/main/java/me/goudham/MyClipboardContent.java @@ -8,6 +8,10 @@ class MyClipboardContent { MyClipboardContent() { } + MyClipboardContent(Object oldContent) { + this.oldContent = (T) oldContent; + } + public void setOldContent(Object oldContent) { this.oldContent = (T) oldContent; }