from(其他类型)
of(多个参数)
valueOf()
instance()/getInstance()
create()/newInstance()每次调用都返回一个新的实例
getType() 类似instance,Type为类型,返回不同于本类型
newType() 类似newInstance,Type为类型,返回不同于本类型
type() 简化版,type为类型
from(其他类型)
of(多个参数)
valueOf()
instance()/getInstance()
create()/newInstance()每次调用都返回一个新的实例
getType() 类似instance,Type为类型,返回不同于本类型
newType() 类似newInstance,Type为类型,返回不同于本类型
type() 简化版,type为类型
本文标题:静态工厂方法惯用名称简单总结
本文链接:https://www.haomeiwen.com/subject/rcpcohtx.html
网友评论