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

com.javaoffers.brief.modelhelper.util.Model Maven / Gradle / Ivy

There is a newer version: 3.6.8
Show newest version
package com.javaoffers.brief.modelhelper.util;

/**
 * @Description:
 * @Auther: create by cmj on 2021/12/9 11:37
 */
public class Model {
    private E model;
    private boolean status = false;//

    public E getModel() {
        return model;
    }

    public E getModelAndSetStatusIsTrue() {
        this.status = true;
        return model;
    }

    public void setModel(E model) {
        this.model = model;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Model(E model) {
        super();
        this.model = model;
    }

    public static  Model getModel(E model) {
        return new Model(model);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy