All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.bnd.service.clipboard.Clipboard Maven / Gradle / Ivy

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