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

cz.mmsparams.api.lists.HistorizedObject Maven / Gradle / Ivy

package cz.mmsparams.api.lists;

import cz.mmsparams.api.utils.Preconditions;

public class HistorizedObject
{
    private T obj;
    private final R historized;

    public HistorizedObject(T obj, HistorizedListConverter converter)
    {
        Preconditions.checkNotNull(converter, "converter");
        this.obj = obj;
        this.historized = converter.convert(obj);
    }

    public T getObject()
    {
        return this.obj;
    }

    public R getHistorizedObject()
    {
        return this.historized;
    }

    public void clear()
    {
        this.obj = null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy