Class ModuleIdTranslations


  • public final class ModuleIdTranslations
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String translate​(java.lang.String moduleId)
      Translate a legacy (pre-8.0) module id to its new (post-8.0) value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • translate

        @Nonnull
        public static java.lang.String translate​(@Nonnull
                                                 java.lang.String moduleId)
        Translate a legacy (pre-8.0) module id to its new (post-8.0) value.

        If the module id has no translation the same value is returned.

        Parameters:
        moduleId - the module id to translate.
        Returns:
        a new module id, if a translation for that module id exists. Otherwise the original value.