Interface Clipboard


public interface Clipboard
Abstraction of the clip board since this can vary per driver
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> boolean
    copy(T content)
    Copy the content and return true if successful.
    <T> Optional<T>
    paste(Class<T> type)
    Get the content from the clipboard
  • 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

      <T> Optional<T> paste(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