Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.database.Cursor;

public class Main {
    /**
     * Checks if the passed {@link Cursor} is not null and is open.
     * @param cursor The {@link Cursor} to check.
     * @return <code>true</code> if {@link Cursor} is open, <code>false</code> if
     * it is closed.
     */
    public static boolean isOpen(final Cursor cursor) {
        return (cursor != null) && (!cursor.isClosed());
    }
}