Pet*_*r C 3 java naming-conventions javabeans
我有一个showLabels在Bean类中调用的布尔字段,我想为它提供getter和setter方法.二传手会setShowLabels,而应该吸气剂是isShowingLabels,isShowLabels(这是很奇怪的冠冕堂皇),或setShowLabels?
showLabels
setShowLabels
isShowingLabels
isShowLabels
Ada*_*dam 9
isShowLabels听起来应该是奇怪的,这就是惯例.您始终可以将布尔值重命名为showingLabels.
showingLabels
归档时间:
15 年,3 月 前
查看次数:
813 次
最近记录: