public SimpleFormatter getByVariant ( CharSequence variant ) { assert isValid ( ) ; int idx = StandardPlural . indexOrOtherIndexFromString ( variant ) ; SimpleFormatter template = templates [ idx ] ; return ( template == null && idx != StandardPlural . OTHER_INDEX ) ? templates [ StandardPlural . OTHER_INDEX ] : template ; }
Gets the SimpleFormatter for a particular variant .