Here you can find the source of formatSize(Integer size)
public static int formatSize(Integer size)
//package com.java2s; public class Main { public static int formatSize(Integer size) { return formatPositiveInt(size, 10); }//w w w .j ava 2s . c o m public static int formatPositiveInt(Integer start, int defaultStart) { return start == null || start.intValue() < 0 ? defaultStart : start.intValue(); } }