Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 10 years ago.
我认为 getOrCreate 是一个更常见的名称。可能没有太大区别,但我发现它比 getOrInsert 更常用。
I think getOrCreate is a more common name for this. Probably doesn't make much of a difference, but I've seen this used more commonly than getOrInsert.
getOrCreate
getOrInsert
getInsertTag();
或更冗长/更丑陋
getOrInsertTag();
or more verbous/uglier
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
我认为 getOrCreate 是一个更常见的名称。可能没有太大区别,但我发现它比 getOrInsert 更常用。
I think
getOrCreate
is a more common name for this. Probably doesn't make much of a difference, but I've seen this used more commonly thangetOrInsert
.或更冗长/更丑陋
or more verbous/uglier