码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse中generate getter and setter对boolean的反应

时间:2015-04-12 15:56:30      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

有点意思 , 如果变量是boolean类型的  ,就会生成isxxx开头的getter方法 , 但如果是Boolean对象的 , 就会生成getterxx开头的getter对象.

例如

Boolean notToday;

boolean notTommorrow;

就会生成

getNotToday()....

isNotTommorrow()....

Eclipse中generate getter and setter对boolean的反应

标签:

原文地址:http://www.cnblogs.com/taojintianxia/p/4419499.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!