List of utility methods to do List Size
int | sizeOfStringToStringListMap(Map size Of String To String List Map int size = 2; for (Map.Entry<String, List<String>> entry : m.entrySet()) { size += sizeOfString(entry.getKey()); size += sizeOfStringList(entry.getValue()); return size; |
int | sizeSafe(List> list) Returns the size of a list and 0 if the list is null. return null == list ? 0 : list.size();
|