private static List copyValues ( FDStackFrameImpl frame , List to , Struct from ) { Iterator it = from . entrySet ( ) . iterator ( ) ; Entry entry ; while ( it . hasNext ( ) ) { entry = ( Entry ) it . next ( ) ; to . add ( new FDVariable ( frame , ( String ) entry . getKey ( ) , FDCaster . toFDValue ( frame , entry . getValue ( ) ) ) ) ; } return to ; }
copy all data from given struct to given list and translate it to a FDValue