public static int sizeOf(Collection<?> collection) {
        if (isEmpty(collection)) {
            return 0;
        }
        return collection.size();
    }
@author Robert HG (254963746@qq.com) on 6/23/14.
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/CollectionUtils.java