Class CollatorServiceShim.CService

Enclosing class:
CollatorServiceShim

private static class CollatorServiceShim.CService extends ICULocaleService
  • Constructor Details

    • CService

      CService()
  • Method Details

    • validateFallbackLocale

      public String validateFallbackLocale()
      makeInstance() returns an appropriate Collator for any locale. It falls back to root if there is no specific data.

      Without this override, the service code would fall back to the default locale which is not desirable for an algorithm with a good Unicode default, like collation.

      Overrides:
      validateFallbackLocale in class ICULocaleService
    • handleDefault

      protected Object handleDefault(ICUService.Key key, String[] actualIDReturn)
      Description copied from class: ICUService
      Default handler for this service if no factory in the list handled the key.
      Overrides:
      handleDefault in class ICUService