public static final class ImmutableGraph.Builder extends ImmutableElement.AbstractBuilder<ImmutableGraph.Builder>
properties| Modifier and Type | Method and Description |
|---|---|
ImmutableGraph.Builder |
addEdge(org.opennms.integration.api.v1.graph.Edge edge) |
ImmutableGraph.Builder |
addEdges(Collection<org.opennms.integration.api.v1.graph.Edge> edges) |
ImmutableGraph.Builder |
addVertex(org.opennms.integration.api.v1.graph.Vertex vertex) |
ImmutableGraph.Builder |
addVertices(Collection<org.opennms.integration.api.v1.graph.Vertex> vertices) |
ImmutableGraph |
build() |
ImmutableGraph.Builder |
defaultFocus(List<org.opennms.integration.api.v1.graph.VertexRef> vertexRefList) |
ImmutableGraph.Builder |
defaultFocus(org.opennms.integration.api.v1.graph.VertexRef... vertexRefs) |
ImmutableGraph.Builder |
defaultFocus(org.opennms.integration.api.v1.graph.VertexRef vertexRef) |
ImmutableGraph.Builder |
description(String description) |
ImmutableEdge.Builder |
edge(String id,
org.opennms.integration.api.v1.graph.VertexRef source,
org.opennms.integration.api.v1.graph.VertexRef target) |
String |
getNamespace() |
org.opennms.integration.api.v1.graph.Vertex |
getVertex(String id) |
List<org.opennms.integration.api.v1.graph.Vertex> |
getVertices() |
ImmutableGraph.Builder |
graph(org.opennms.integration.api.v1.graph.Graph graph) |
ImmutableGraph.Builder |
graphInfo(org.opennms.integration.api.v1.graph.GraphInfo graphInfo) |
ImmutableGraph.Builder |
label(String label) |
ImmutableGraph.Builder |
namespace(String namespace) |
ImmutableGraph.Builder |
properties(Map<String,Object> properties) |
ImmutableGraph.Builder |
property(String name,
Object value) |
void |
removeEdge(org.opennms.integration.api.v1.graph.Edge edge) |
void |
removeVertex(org.opennms.integration.api.v1.graph.Vertex vertex) |
ImmutableVertex.Builder |
vertex(String id) |
public ImmutableGraph.Builder graph(org.opennms.integration.api.v1.graph.Graph graph)
public ImmutableGraph.Builder label(String label)
public ImmutableGraph.Builder description(String description)
public ImmutableGraph.Builder graphInfo(org.opennms.integration.api.v1.graph.GraphInfo graphInfo)
public ImmutableGraph.Builder defaultFocus(org.opennms.integration.api.v1.graph.VertexRef... vertexRefs)
public ImmutableGraph.Builder defaultFocus(org.opennms.integration.api.v1.graph.VertexRef vertexRef)
public ImmutableGraph.Builder defaultFocus(List<org.opennms.integration.api.v1.graph.VertexRef> vertexRefList)
public ImmutableGraph.Builder addEdges(Collection<org.opennms.integration.api.v1.graph.Edge> edges)
public ImmutableGraph.Builder addVertices(Collection<org.opennms.integration.api.v1.graph.Vertex> vertices)
public ImmutableGraph.Builder addVertex(org.opennms.integration.api.v1.graph.Vertex vertex)
public ImmutableGraph.Builder addEdge(org.opennms.integration.api.v1.graph.Edge edge)
public ImmutableVertex.Builder vertex(String id)
public ImmutableEdge.Builder edge(String id, org.opennms.integration.api.v1.graph.VertexRef source, org.opennms.integration.api.v1.graph.VertexRef target)
public void removeEdge(org.opennms.integration.api.v1.graph.Edge edge)
public void removeVertex(org.opennms.integration.api.v1.graph.Vertex vertex)
public String getNamespace()
public org.opennms.integration.api.v1.graph.Vertex getVertex(String id)
public ImmutableGraph.Builder namespace(String namespace)
public ImmutableGraph.Builder property(String name, Object value)
property in class ImmutableElement.AbstractBuilder<ImmutableGraph.Builder>public ImmutableGraph.Builder properties(Map<String,Object> properties)
properties in class ImmutableElement.AbstractBuilder<ImmutableGraph.Builder>public List<org.opennms.integration.api.v1.graph.Vertex> getVertices()
public ImmutableGraph build()
Copyright © 2020. All rights reserved.