Java tutorial
//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; } return false; } }