gpt4 book ai didi

java - 如何使用 TextCell 对象作为 CellList 构造函数的参数来实例化 CellList 对象?

转载 作者:行者123 更新时间:2023-12-01 13:15:47 24 4
gpt4 key购买 nike

GWT Javadoc 迷你教程中的代码如下所示:

TextCell textCell = new TextCell();
CellList<String> cellList = new CellList<String>(textCell);

我问这个是因为我看不到 TextCell 之间及其与 CellList 构造函数要求之间的任何关系,因此,我看不到 textCell 如何满足 CelList 要求。

CellList 构造函数是:

CellList(Cell<T> cell)
Construct a new CellList.
CellList(Cell<T> cell, CellList.Resources resources)
Construct a new CellList with the specified CellList.Resources.
CellList(Cell<T> cell, CellList.Resources resources, ProvidesKey<T> keyProvider)
Construct a new CellList with the specified CellList.Resources and key provider.
CellList(Cell<T> cell, ProvidesKey<T> keyProvider)
Construct a new CellList with the specified key provider.

我的问题旨在基本上了解这是如何工作的,如果你们能告诉我哪个 Java 或 OOP 主题或其他内容可以详细解释这一点。

谢谢。

最佳答案

关于java - 如何使用 TextCell 对象作为 CellList<String> 构造函数的参数来实例化 CellList<String> 对象?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22486383/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com