java.lang.Object
de.espirit.firstspirit.ui.gadgets.aspects.transfer.TransferType<T>
Type Parameters:
T - The type of transferred commodity.

public abstract class TransferType<T> extends Object
Transfer type, a typed wrapper for data flavors.
Since:
4.2.426
  • Constructor Details

    • TransferType

      public TransferType()
  • Method Details

    • getType

      @NotNull public abstract @NotNull Class<T> getType()
      Provides access to the type of the transfer type.
      Returns:
      The type.
      Since:
      4.2.426
    • getDescriptor

      @NotNull public abstract @NotNull String getDescriptor()
      Provides access the descriptor of the transfer type, e.g. a MIME type.
      Returns:
      The type's descriptor.
      Since:
      4.2.426
    • getDataFlavor

      @NotNull public abstract @NotNull DataFlavor getDataFlavor()
      Converts the transfer type into a data flavor representation.
      Returns:
      The matching data flavor.
      Since:
      4.2.426