Skip to content

interface IOptionsFactory

cangjie
public interface IOptionsFactory<TOptions> where TOptions <: Object

功能:定义创建选项实例的工厂接口。

成员概览

成员功能
func create(String)按名称创建选项实例。

func create(String)

cangjie
func create(name: String): TOptions

功能:按名称创建选项实例。

参数:

  • name: String - 选项名称。

返回值:

  • TOptions - 返回创建得到的选项实例。