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

javax0.jamal.tools.IdentifiedObjectHolder Maven / Gradle / Ivy

package javax0.jamal.tools;

import javax0.jamal.api.Identified;
import javax0.jamal.api.ObjectHolder;

public class IdentifiedObjectHolder implements ObjectHolder, Identified   {

    private final T object;
    private final String id;

    public IdentifiedObjectHolder(final T object, final String id) {
        this.object = object;
        this.id = id;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public T getObject() {
        return object;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy