您的位置:首页 > Web前端

The difference between null and isEmpty in Groovy

2012-11-06 19:36 369 查看
If the print result of data from SQLServer Data Base is null, you should use null;

if the print result of data from SQLServer Data Base is nothing, you should use isEmpty.

for example:

log.info table.column

display:null

assert(table.column==null)

log.info table.column

display:

assert(table.column.isEmpty())
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐