private Data getData ( ULocale locale , CompactStyle style ) { CompactDecimalDataCache . DataBundle bundle = cache . get ( locale ) ; switch ( style ) { case SHORT : return bundle . shortData ; case LONG : return bundle . longData ; default : return bundle . shortData ; } }
Gets the data for a particular locale and style . If style is unrecognized we just return data for CompactStyle . SHORT .