private static void copyFunctions ( FunctionLib extFL , FunctionLib newFL ) { Iterator < Entry < String , FunctionLibFunction > > it = extFL . getFunctions ( ) . entrySet ( ) . iterator ( ) ; FunctionLibFunction flf ; while ( it . hasNext ( ) ) { flf = it . next ( ) . getValue ( ) ; // TODO function must be duplicated because it gets a new FunctionLib assigned newFL . setFunction ( flf ) ; } }
copy function from one FunctionLib to a other