is SparseArray Empty - Android java.lang

Android examples for java.lang:Array Element

Description

is SparseArray Empty

Demo Code


//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;
    }
}

Related Tutorials