use of org.opennms.features.topology.api.topo.RefComparator in project opennms by OpenNMS.
the class LinkdHopCriteria method getVertices.
@Override
public Set<VertexRef> getVertices() {
Integer id = Integer.valueOf(m_nodeId);
OnmsNode node = m_nodeDao.get(id);
Set<VertexRef> vertices = new TreeSet<VertexRef>(new RefComparator());
if (node != null) {
String label = node.getLabel();
vertices.add(new DefaultVertexRef("nodes", m_nodeId, label));
}
return vertices;
}
Aggregations