public Parameters setDefaults ( Parameters defaultParameters , boolean recursive ) { Parameters result = new Parameters ( ) ; if ( recursive ) { RecursiveObjectWriter . copyProperties ( result , defaultParameters ) ; RecursiveObjectWriter . copyProperties ( result , this ) ; } else { ObjectWriter . setProperties ( result , defaultParameters ) ; ObjectWriter . setProperties ( result , this ) ; } return result ; }
Set default values from specified Parameters and returns a new Parameters object .