}
public static NodeKey getNodeKey(final NodeRef ref) {
- return ref.getValue().firstKeyOf(Node.class, NodeKey.class);
+ return ref.getValue().firstKeyOf(Node.class);
}
public static NodeKey getNodeKey(final NodeConnectorRef ref) {
- return ref.getValue().firstKeyOf(Node.class, NodeKey.class);
+ return ref.getValue().firstKeyOf(Node.class);
}
public static NodeConnectorKey getNodeConnectorKey(final NodeConnectorRef ref) {
- return ref.getValue().firstKeyOf(NodeConnector.class, NodeConnectorKey.class);
+ return ref.getValue().firstKeyOf(NodeConnector.class);
}
public static NodeId toTopologyNodeId(
return toTerminationPointId(getNodeConnectorKey(source).getId());
}
- public static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node toTopologyNode(
+ public static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology
+ .topology.Node toTopologyNode(
final NodeId nodeId, final NodeRef invNodeRef) {
- return new NodeBuilder()
- .setNodeId(nodeId)
- .addAugmentation(InventoryNode.class, new InventoryNodeBuilder()
- .setInventoryNodeRef(invNodeRef)
- .build())
- .build();
+ return new NodeBuilder().setNodeId(nodeId).addAugmentation(InventoryNode.class, new InventoryNodeBuilder()
+ .setInventoryNodeRef(invNodeRef).build()).build();
}
public static TerminationPoint toTerminationPoint(final TpId id, final NodeConnectorRef invNodeConnectorRef) {