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())
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())
相关文章推荐
- what is the difference between "isempty"and "isnull"in the qt bool QString::isEmpty () const Retur.
- What exactly is the difference between “pass by reference” in C and in C++?
- the difference between isinstance and type in python
- What is the difference between a soft reference and a weak reference in Java?
- what is the difference between _source and _all in Elasticsearch
- What is the difference between getWidth/heigth() and getMeasuredWidth/Heigth() in Android SDK?
- What is the difference between Views and Materialized Views in Oracle?
- What is the difference between BIT and TINYINT in MySQL
- What is the difference between provider network and self-service network in OpenStack?
- Whats is the difference between train, validation and test set, in neural networks?
- what is the difference between static and normal variables in c++
- What Is the Difference Between a Block, a Proc, and a Lambda in Ruby
- What is the Difference Between Type and Class in
- what is the difference between definition and declaration in c
- In PHP5, what is the difference between using self and $this? When is each appropriate?
- What is the difference between SVD and matrix factorization in context of recommendation engine?
- macro与inline的区别 What is the difference between macro and inline?
- What is the difference between @staticmethod and @classmethod in Python?
- what is the difference between definition and declaration in c
- OpenStack: What is the difference between Block storage and Object storage?Also, In what way they ar