public void merge ( PageSpec spec ) { if ( spec == null ) { throw new IllegalArgumentException ( "Cannot merge null spec" ) ; } objects . putAll ( spec . getObjects ( ) ) ; sections . addAll ( spec . getSections ( ) ) ; objectGroups . putAll ( spec . getObjectGroups ( ) ) ; }
Merges all objects sections and objectGroups from spec