
aQute.bnd.service.clipboard.Clipboard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bndlib Show documentation
Show all versions of biz.aQute.bndlib Show documentation
bndlib: A Swiss Army Knife for OSGi
The newest version!
package aQute.bnd.service.clipboard;
import java.util.Optional;
/**
* Abstraction of the clip board since this can vary per driver
*/
public interface Clipboard {
/**
* Copy the content and return true if successful.
*
* @param the type of the content
* @param content the content
* @return true if succesfully copied to the clipboard
*/
boolean copy(T content);
/**
* Get the content from the clipboard
*
* @param
* @param type the type to fetch
* @return a instance or empty if no such type was on the clipboard
*/
Optional paste(Class type);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy