Generic class to store types of clipboard content
parent
eb72af5149
commit
69dab1b3c0
@ -0,0 +1,17 @@
|
||||
package me.goudham.controller;
|
||||
|
||||
public class MyClipboardContent<T> {
|
||||
private T content;
|
||||
|
||||
public MyClipboardContent(T content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public void setContent(Object content) {
|
||||
this.content = (T) content;
|
||||
}
|
||||
|
||||
public T getContent() {
|
||||
return content;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue