public SDVariable [ ] updateVariableNamesAndReferences ( SDVariable [ ] variablesToUpdate , String [ ] newVariableNames ) { int numVariables = variablesToUpdate . length ; SDVariable [ ] updatedVariables = new SDVariable [ numVariables ] ; for ( int i = 0 ; i < numVariables ; i ++ ) { SDVariable varToUpdate = variablesToUpdate [ i ] ; String name = newVariableNames == null ? null : newVariableNames [ i ] ; updatedVariables [ i ] = updateVariableNameAndReference ( varToUpdate , name ) ; } return updatedVariables ; }
Updates the variable name property on the passed in variables its reference in samediff and returns the variable .