javax0.jamal.tools.IdentifiedObjectHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jamal-tools Show documentation
Show all versions of jamal-tools Show documentation
-in Jamal macro library support tools
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;
}
}