我有這個接口只有接口方法是鍵入
/**
* 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類型具體的東西類,我想確保牛逼實現另一個接口?
'' –
' void exportData(...)'? –
似乎在接口名稱前面對'I'有很多仇恨,但是我發現它更容易挑選出它是一個快速接口,我知道你可以在日食中使用它們的類型來裝飾類,它不是一個可怕的慣例(儘管從C#中借用) – reevesy