static AttributeSet merge ( AttributeSet outer , AttributeSet inner ) { Map < String , Object > internalsNew = new HashMap <> ( ) ; internalsNew . putAll ( inner . internals ) ; internalsNew . putAll ( outer . internals ) ; Attributes attributesNew = new Attributes . Builder ( ) . setAll ( inner . attributes ) . setAll ( outer . attributes ) . build ( ) ; AttributeSet as = new AttributeSet ( attributesNew , Locale . ROOT , 0 , 0 , null , internalsNew ) ; return as . withLocale ( outer . locale ) ; }
used to create merged global attributes for a new formatter