@Override
    public void setContext(DisplayContext context) {
        super.setContext(context);
        if (!capitalizationInfoIsSet &&
              (context==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU || context==DisplayContext.CAPITALIZATION_FOR_STANDALONE)) {
            initCapitalizationContextInfo(fLocale);
            capitalizationInfoIsSet = true;
        }
        if (capitalizationBrkIter == null && (context==DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ||
              (context==DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationOfRelativeUnitsForListOrMenu) ||
              (context==DisplayContext.CAPITALIZATION_FOR_STANDALONE && capitalizationOfRelativeUnitsForStandAlone) )) {
            capitalizationBrkIter = BreakIterator.getSentenceInstance(fLocale);
        }
    }
@ Override public void setContext ( DisplayContext context ) { super . setContext ( context ) ; if ( ! capitalizationInfoIsSet && ( context == DisplayContext . CAPITALIZATION_FOR_UI_LIST_OR_MENU || context == DisplayContext . CAPITALIZATION_FOR_STANDALONE ) ) { initCapitalizationContextInfo ( fLocale ) ; capitalizationInfoIsSet = true ; } if ( capitalizationBrkIter == null && ( context == DisplayContext . CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || ( context == DisplayContext . CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationOfRelativeUnitsForListOrMenu ) || ( context == DisplayContext . CAPITALIZATION_FOR_STANDALONE && capitalizationOfRelativeUnitsForStandAlone ) ) ) { capitalizationBrkIter = BreakIterator . getSentenceInstance ( fLocale ) ; } }
/* (non-Javadoc)
@see android.icu.text.DateFormat#setContext(android.icu.text.DisplayContext)
Here we override the DateFormat implementation in order to
lazily initialize relevant items