NamedGraphServer, FlyweightPrototype<NamedGraphServer>public class ImmutableGraphNamedGraphServer extends java.lang.Object implements NamedGraphServer
NamedGraphServer using an ImmutableGraph
for the graph structure and a StringMap for the name of the nodes.
Note that if you want to use the copy() method and access copies
concurrently, the map provided at construction time must be synchronized.
| Constructor | Description |
|---|---|
ImmutableGraphNamedGraphServer(ImmutableGraph graph,
StringMap<? extends java.lang.CharSequence> map) |
Builds the server.
|
| Modifier and Type | Method | Description |
|---|---|---|
ImmutableGraphNamedGraphServer |
copy() |
|
java.lang.CharSequence[] |
successors(java.lang.CharSequence name) |
If
src corresponds to the name of a node in the graph, this method returns
an array with the name of its successors (in some order); otherwise, it returns null. |
public ImmutableGraphNamedGraphServer(ImmutableGraph graph, StringMap<? extends java.lang.CharSequence> map)
graph - the graph.map - a string map representing the URLs of the graph.public java.lang.CharSequence[] successors(java.lang.CharSequence name)
NamedGraphServersrc corresponds to the name of a node in the graph, this method returns
an array with the name of its successors (in some order); otherwise, it returns null.successors in interface NamedGraphServername - the name of a node.src, or null if name
is not the name of a node.public ImmutableGraphNamedGraphServer copy()
copy in interface FlyweightPrototype<NamedGraphServer>