Android examples for java.lang:Array Element
is SparseArray Empty
//package com.java2s; import android.util.SparseArray; public class Main { public static <E> boolean isEmpty(SparseArray<E> array) { if (array == null || array.size() == 0) { return true; }//ww w .j a va2 s . c om return false; } }