Package aQute.bnd.service.clipboard
Interface Clipboard
public interface Clipboard
Abstraction of the clip board since this can vary per driver
-
Method Summary
-
Method Details
-
copy
<T> boolean copy(T content) Copy the content and return true if successful.- Type Parameters:
T
- the type of the content- Parameters:
content
- the content- Returns:
- true if succesfully copied to the clipboard
-
paste
Get the content from the clipboard- Type Parameters:
T
-- Parameters:
type
- the type to fetch- Returns:
- a instance or empty if no such type was on the clipboard
-