// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/data/provider/base/AbstractCursor.java
// public abstract class AbstractCursor extends CursorWrapper {
//     private final HashMap<String, Integer> mColumnIndexes;
// 
//     public AbstractCursor(Cursor cursor) {
//         super(cursor);
//         mColumnIndexes = new HashMap<>(cursor.getColumnCount() * 4 / 3, .75f);
//     }
// 
//     public abstract long getId();
// 
//     protected int getCachedColumnIndexOrThrow(String colName) {
//         Integer index = mColumnIndexes.get(colName);
//         if (index == null) {
//             index = getColumnIndexOrThrow(colName);
//             mColumnIndexes.put(colName, index);
//         }
//         return index;
//     }
// 
//     public String getStringOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getString(index);
//     }
// 
//     public Integer getIntegerOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getInt(index);
//     }
// 
//     public Long getLongOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getLong(index);
//     }
// 
//     public Float getFloatOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getFloat(index);
//     }
// 
//     public Double getDoubleOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getDouble(index);
//     }
// 
//     public Boolean getBooleanOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getInt(index) != 0;
//     }
// 
//     public Date getDateOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return new Date(getLong(index));
//     }
// 
//     public byte[] getBlobOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getBlob(index);
//     }
// }


import android.database.Cursor;
import android.support.annotation.Nullable;
import com.adkdevelopment.earthquakesurvival.data.provider.base.AbstractCursor;
package com.adkdevelopment.earthquakesurvival.data.provider.count;



/**
 * Cursor wrapper for the {@code count} table.
 */
public class CountCursor extends AbstractCursor implements CountModel {
    public CountCursor(Cursor cursor) {
        super(cursor);
    }

    /**
     * Primary key.
     */
    public long getId() {
        Long res = getLongOrNull(CountColumns._ID);
        if (res == null)
            throw new NullPointerException("The value of '_id' in the database was null, which is not allowed according to the model definition");
        return res;
    }

    /**
     * Year
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountYear() {
        Integer res = getIntegerOrNull(CountColumns.COUNT_YEAR);
        return res;
    }

    /**
     * Month
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountMonth() {
        Integer res = getIntegerOrNull(CountColumns.COUNT_MONTH);
        return res;
    }

    /**
     * Week
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountWeek() {
        Integer res = getIntegerOrNull(CountColumns.COUNT_WEEK);
        return res;
    }

    /**
     * Day
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountDay() {
// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/data/provider/base/AbstractCursor.java
// public abstract class AbstractCursor extends CursorWrapper {
//     private final HashMap<String, Integer> mColumnIndexes;
// 
//     public AbstractCursor(Cursor cursor) {
//         super(cursor);
//         mColumnIndexes = new HashMap<>(cursor.getColumnCount() * 4 / 3, .75f);
//     }
// 
//     public abstract long getId();
// 
//     protected int getCachedColumnIndexOrThrow(String colName) {
//         Integer index = mColumnIndexes.get(colName);
//         if (index == null) {
//             index = getColumnIndexOrThrow(colName);
//             mColumnIndexes.put(colName, index);
//         }
//         return index;
//     }
// 
//     public String getStringOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getString(index);
//     }
// 
//     public Integer getIntegerOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getInt(index);
//     }
// 
//     public Long getLongOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getLong(index);
//     }
// 
//     public Float getFloatOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getFloat(index);
//     }
// 
//     public Double getDoubleOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getDouble(index);
//     }
// 
//     public Boolean getBooleanOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getInt(index) != 0;
//     }
// 
//     public Date getDateOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return new Date(getLong(index));
//     }
// 
//     public byte[] getBlobOrNull(String colName) {
//         int index = getCachedColumnIndexOrThrow(colName);
//         if (isNull(index)) return null;
//         return getBlob(index);
//     }
// }


// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/data/provider/count/CountCursor.java
import android.database.Cursor;
import android.support.annotation.Nullable;
import com.adkdevelopment.earthquakesurvival.data.provider.base.AbstractCursor;

package com.adkdevelopment.earthquakesurvival.data.provider.count;



/**
 * Cursor wrapper for the {@code count} table.
 */
public class CountCursor extends AbstractCursor implements CountModel {
    public CountCursor(Cursor cursor) {
        super(cursor);
    }

    /**
     * Primary key.
     */
    public long getId() {
        Long res = getLongOrNull(CountColumns._ID);
        if (res == null)
            throw new NullPointerException("The value of '_id' in the database was null, which is not allowed according to the model definition");
        return res;
    }

    /**
     * Year
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountYear() {
        Integer res = getIntegerOrNull(CountColumns.COUNT_YEAR);
        return res;
    }

    /**
     * Month
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountMonth() {
        Integer res = getIntegerOrNull(CountColumns.COUNT_MONTH);
        return res;
    }

    /**
     * Week
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountWeek() {
        Integer res = getIntegerOrNull(CountColumns.COUNT_WEEK);
        return res;
    }

    /**
     * Day
     * Can be {@code null}.
     */
    @Nullable
    public Integer getCountDay() {
        Integer res = getIntegerOrNull(CountColumns.COUNT_DAY);