Class SimpleDomainVertex
- java.lang.Object
-
- org.opennms.netmgt.graph.domain.AbstractDomainVertex
-
- org.opennms.netmgt.graph.domain.simple.SimpleDomainVertex
-
- All Implemented Interfaces:
NodeRefAware
,Vertex
public final class SimpleDomainVertex extends AbstractDomainVertex
Acts as a domain specific view on aGenericVertex
. This is the most basic concrete subclass ofAbstractDomainVertex
and can be used as a reference for your own domain vertex. It is a final class. If you need more functionality please extendAbstractDomainVertex
. Since it's delegate is immutable and this class holds no data of it's own it is immutable as well.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleDomainVertex.SimpleDomainVertexBuilder
-
Nested classes/interfaces inherited from class org.opennms.netmgt.graph.domain.AbstractDomainVertex
AbstractDomainVertex.AbstractDomainVertexBuilder<T extends AbstractDomainElementBuilder>
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.graph.domain.AbstractDomainVertex
delegate
-
-
Constructor Summary
Constructors Constructor Description SimpleDomainVertex(GenericVertex genericVertex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleDomainVertex.SimpleDomainVertexBuilder
builder()
boolean
equals(java.lang.Object o)
static SimpleDomainVertex
from(GenericVertex genericVertex)
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.opennms.netmgt.graph.domain.AbstractDomainVertex
asGenericVertex, getId, getLabel, getNamespace, getNodeRef, getVertexRef
-
-
-
-
Constructor Detail
-
SimpleDomainVertex
public SimpleDomainVertex(GenericVertex genericVertex)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractDomainVertex
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractDomainVertex
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractDomainVertex
-
builder
public static SimpleDomainVertex.SimpleDomainVertexBuilder builder()
-
from
public static SimpleDomainVertex from(GenericVertex genericVertex)
-
-