From 6030348e5b8642cd9ea984883938403358ea82a9 Mon Sep 17 00:00:00 2001 From: Hammy Date: Tue, 20 Jul 2021 02:12:48 +0100 Subject: [PATCH] Add getImage() method --- src/main/java/me/goudham/model/MyClipboardContent.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/me/goudham/model/MyClipboardContent.java b/src/main/java/me/goudham/model/MyClipboardContent.java index 3a530b5..60ac086 100644 --- a/src/main/java/me/goudham/model/MyClipboardContent.java +++ b/src/main/java/me/goudham/model/MyClipboardContent.java @@ -1,5 +1,7 @@ package me.goudham.model; +import java.awt.Image; + public class MyClipboardContent { private T content; @@ -14,4 +16,8 @@ public class MyClipboardContent { public T getContent() { return content; } + + public Image getImage() { + return (Image) content; + } }