com.github.hal4j.resources.ResourceBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hal4j-api Show documentation
Show all versions of hal4j-api Show documentation
HAL API specification for Java
package com.github.hal4j.resources;
import com.github.hal4j.resources.curie.CurieResolver;
public class ResourceBuilder
extends ResourceBuilderSupport, ResourceBuilder>
implements Builder> {
private final T model;
public ResourceBuilder(T model, CurieResolver resolver) {
super(resolver);
this.model = model;
}
@Override
protected ResourceBuilder _this() {
return this;
}
@Override
public Resource build() {
return new Resource(model, _links, _embedded, context());
}
}