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

com.github.hal4j.resources.ResourceBuilder Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
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());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy