@ Nullable private ICommonsOrderedMap < String , RequestParamMapItem > _getChildMapExceptLast ( @ Nonnull @ Nonempty final String ... aPath ) { ValueEnforcer . notEmpty ( aPath , "Path" ) ; ICommonsOrderedMap < String , RequestParamMapItem > aMap = m_aMap ; // Until the second last object for ( int i = 0 ; i < aPath . length - 1 ; ++ i ) { aMap = _getChildMap ( aMap , aPath [ i ] ) ; if ( aMap == null ) return null ; } return aMap ; }
Iterate the root map down to the map specified by the passed path except for the last element .