Class I18nUtil

  • @NonNullByDefault
    public class I18nUtil
    extends Object
    Denis Nobel - Initial contribution
    • Constructor Detail

      • I18nUtil

        public I18nUtil()
    • Method Detail

      • isConstant

        public static boolean isConstant​(@Nullable String key)
      • stripConstant

        public static String stripConstant​(String key)
      • stripConstantOr

        public static String stripConstantOr​(@Nullable String key,
                                             Supplier<String> supplier)
        If key is a constant strip the constant part, otherwise use the supplier provided string.
        key - the key
        supplier - the supplier that return value is used if key is identified as a constant
        the key with the stripped constant marker or the supplier provided key if it is not identified as a constant