Back to project page PodioPuzzle.
The source code is released under:
Apache License
If you think the Android project PodioPuzzle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.podio.podiopuzzle.util; // w w w . j a va 2 s . c o m import com.podio.podiopuzzle.model.Organization; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Map; /** * Created by goman on 30/10/14. */ public class Utility { public static boolean isListNullOrEmpty(List<?> list){ if (list == null) return true; else return list.size() > 0 ? false : true; } public static boolean isListNullOrEmpty(Organization[] list){ if (list == null) return true; else return list.length > 0 ? false : true; } public static boolean isMapNullOrEmpty(Map<?,?> list){ if (list == null) return true; else return list.size() > 0 ? false : true; } }