All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.solovyev.android.db.AbstractObjectDbExec Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.db;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * User: serso
 * Date: 4/29/12
 * Time: 1:09 PM
 */
public abstract class AbstractObjectDbExec implements DbExec {

    @Nullable
    private T object;

    protected AbstractObjectDbExec(@Nullable T object) {
        this.object = object;
    }

    @Nullable
    protected T getObject() {
        return object;
    }

    @NotNull
    protected T getNotNullObject() {
        assert object != null;
        return object;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy