Package aQute.bnd.service.clipboard
Interface Clipboard
-
public interface Clipboard
Abstraction of the clip board since this can vary per driver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> boolean
copy(T content)
Copy the content and return true if successful.<T> java.util.Optional<T>
paste(java.lang.Class<T> type)
Get the content from the clipboard
-
-
-
Method Detail
-
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
<T> java.util.Optional<T> paste(java.lang.Class<T> type)
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
-
-