private static List < Integer > stripNodeIds ( List < Node > nodeList ) { List < Integer > nodeidList = new ArrayList < Integer > ( ) ; if ( nodeList != null ) { for ( Node node : nodeList ) { nodeidList . add ( node . getId ( ) ) ; } } return nodeidList ; }
Helper method to get a list of node ids .