Here you can find the source of isNotEmpty(Collection collection)
@SuppressWarnings("rawtypes") public static boolean isNotEmpty(Collection collection)
//package com.java2s; /**// w w w .ja va 2 s . c o m * Copyright (c) 2005-2012 springside.org.cn * * Licensed under the Apache License, Version 2.0 (the "License"); */ import java.util.Collection; public class Main { @SuppressWarnings("rawtypes") public static boolean isNotEmpty(Collection collection) { return ((collection != null) && !(collection.isEmpty())); } @SuppressWarnings("rawtypes") public static boolean isEmpty(Collection collection) { return ((collection == null) || collection.isEmpty()); } }