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

com.github.restup.path.AllResourcePathsProvider Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.github.restup.path;

import java.util.List;
import com.github.restup.registry.Resource;

class AllResourcePathsProvider implements ResourcePathsProvider {

    private final boolean includeTransient;
    private final boolean apiFieldsOnly;

    AllResourcePathsProvider(boolean includeTransient, boolean apiFieldsOnly) {
        super();
        this.includeTransient = includeTransient;
        this.apiFieldsOnly = apiFieldsOnly;
    }

    AllResourcePathsProvider() {
        this(true, true);
    }

    @Override
    public List getPaths(Resource resource) {
        return Resource.getPaths(resource, includeTransient, apiFieldsOnly);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy