@ Nonnull public EChange addAllFrom ( @ Nonnull final MapBasedXPathFunctionResolver aOther , final boolean bOverwrite ) { ValueEnforcer . notNull ( aOther , "Other" ) ; EChange eChange = EChange . UNCHANGED ; for ( final Map . Entry < XPathFunctionKey , XPathFunction > aEntry : aOther . m_aMap . entrySet ( ) ) if ( bOverwrite || ! m_aMap . containsKey ( aEntry . getKey ( ) ) ) { m_aMap . put ( aEntry . getKey ( ) , aEntry . getValue ( ) ) ; eChange = EChange . CHANGED ; } return eChange ; }
Add all functions from the other function resolver into this resolver .