@ Nonnull public CSSMediaRule addMediaQuery ( @ Nonnegative final int nIndex , @ Nonnull @ Nonempty final CSSMediaQuery aMediaQuery ) { ValueEnforcer . isGE0 ( nIndex , "Index" ) ; ValueEnforcer . notNull ( aMediaQuery , "MediaQuery" ) ; if ( nIndex >= getMediaQueryCount ( ) ) m_aMediaQueries . add ( aMediaQuery ) ; else m_aMediaQueries . add ( nIndex , aMediaQuery ) ; return this ; }
Add a media query at the specified index .