abstract class AbstractBootstrap<B extends AbstractBootstrap<B, C>, C extends Channel>{}
public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, ServerChannel> {}
引用 2 楼 a597926661 的回复:确实很纠结 算是递归么 源码不好看啊确实,ServerBootstrap extends AbstractBootstrap<ServerBootstrap, ServerChannel>,感觉先有AbstractBootstrap<ServerBootstrap, ServerChannel>这个类,才能定义ServerBo……
确实很纠结 算是递归么 源码不好看啊
67,513
社区成员
225,879
社区内容
加载中
试试用AI创作助手写篇文章吧