Code example for Splitter

Methods: split

0
    public static org.opendaylight.controller.sal.core.Node nodeFromNodeId(final String nodeId) {
        return InventoryMapping.nodeFromStrings(NODE_TYPE_SPLITTER.split(nodeId).iterator());
    } 
 
    public static org.opendaylight.controller.sal.core.NodeConnector nodeConnectorFromId(final String invId) {
        return InventoryMapping.nodeConnectorFromString(NODE_TYPE_SPLITTER.split(invId).iterator());
    } 
 
    private static org.opendaylight.controller.sal.core.NodeConnector nodeConnectorFromString(final Iterator<String> it) {
        final org.opendaylight.controller.sal.core.Node node = InventoryMapping.nodeFromStrings(it);
        return org.opendaylight.controller.sal.core.NodeConnector.fromStringNoNode(it.next(), node);
    } 
 
    private static org.opendaylight.controller.sal.core.Node nodeFromStrings(final Iterator<String> it) {
        final String type = it.next().substring(6);
        return org.opendaylight.controller.sal.core.Node.fromString(type, it.next());
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java