public class GraphRepositoryImpl extends Object implements GraphRepository
| Constructor and Description |
|---|
GraphRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGraph(Graph graph)
Adds a graph to the repository and overwrites any previously defined
graph with identical name and version.
|
Graph |
getGraph(String name,
Integer version)
Returns the
Graph with the given name and the given version,
or the latest graph with the given name if no version is null,
or null if no such graph is found.The latest graph is the graph with the greatest version number. |
Set<Graph> |
getGraphs()
Returns all graphs accessible via this repository.
|
Set<Graph> |
getGraphs(String name)
Returns all graphs with the given name ordered with decreasing version
number.
|
public void addGraph(Graph graph)
GraphRepositoryaddGraph in interface GraphRepositorygraph - the graph to be addedpublic Graph getGraph(String name, Integer version)
GraphRepositoryGraph with the given name and the given version,
or the latest graph with the given name if no version is null,
or null if no such graph is found.getGraph in interface GraphRepositoryname - the graph nameversion - the graph versionGraph with the given name and the given version, or
null if no suitable graph is found.public Set<Graph> getGraphs(String name)
GraphRepositorygetGraphs in interface GraphRepositoryname - the graph namepublic Set<Graph> getGraphs()
GraphRepositorygetGraphs in interface GraphRepositoryCopyright © 2018. All rights reserved.