我有这个界面
/**
* Exports data provided by a {@link IDataProvider} as described by {@link IExportableColumn}s. This interface is used by
* {@link ExportToolbar} to provide the export functionality.
*
* @author Jesse Long
* @see ExportToolbar
* @see IExportableColumn
*/
public interface IDataExporter
extends IClusterable
{
...
/**
* Exports the data provided by the {@link IDataProvider} to the {@link OutputStream}.
*
* @param <T>
* The type of each row of data provided by the {@link IDataProvider}.
* @param dataProvider
* The {@link IDataProvider} from which to retrieve the data.
* @param columns
* The {@link IExportableColumn} to use to describe the data.
* @param outputStream
* The {@link OutputStream} to which to write the exported data.
* @throws IOException If an error occurs.
*/
<T> void exportData(IDataProvider<T> dataProvider, List<IExportableColumn<T, ?, ?>> columns, OutputStream outputStream)
throws IOException;
}
在实现此接口的类中是否以某种方式可以将 T 键入特定的内容,我想确保 T 实现另一个接口?