From 69dab1b3c08faf54f541deff59dbb1074fbd6dce Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 18 Jul 2021 06:22:33 +0100 Subject: [PATCH] Generic class to store types of clipboard content --- .../goudham/controller/MyClipboardContent.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main/java/me/goudham/controller/MyClipboardContent.java diff --git a/src/main/java/me/goudham/controller/MyClipboardContent.java b/src/main/java/me/goudham/controller/MyClipboardContent.java new file mode 100644 index 0000000..be5ba3c --- /dev/null +++ b/src/main/java/me/goudham/controller/MyClipboardContent.java @@ -0,0 +1,17 @@ +package me.goudham.controller; + +public class MyClipboardContent { + private T content; + + public MyClipboardContent(T content) { + this.content = content; + } + + public void setContent(Object content) { + this.content = (T) content; + } + + public T getContent() { + return content; + } +}