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

noraui.application.model.DemosModel Maven / Gradle / Ivy

There is a newer version: 4.4.0
Show newest version
package noraui.application.model;

import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import noraui.model.ModelList;

public abstract class DemosModel extends ArrayList implements ModelList {

    /**
     *
     */
    private static final long serialVersionUID = 257533336402277981L;

    protected DemosModel() {
        super();
    }

    protected DemosModel(DemosModel inputList) {
        super(inputList);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String serialize() {
        final GsonBuilder builder = new GsonBuilder();
        builder.excludeFieldsWithoutExposeAnnotation();
        builder.disableHtmlEscaping();
        final Gson gson = builder.create();
        return gson.toJson(this);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy