Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for convertMap (0.08 sec)

  1. src/main/java/org/codelibs/core/io/ResourceBundleUtil.java

         * @param locale the locale
         * @return {@link Map}
         */
        public static final Map<String, String> convertMap(final String name, final Locale locale) {
            assertArgumentNotEmpty("name", name);
    
            final ResourceBundle bundle = getBundle(name, locale);
            return convertMap(bundle);
        }
    
        /**
         * Returns the {@literal locale} if not {@literal null}, otherwise returns the default locale.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/ResourceBundleUtilTest.java

         */
        @Test
        public void testConvertMap() throws Exception {
            final ResourceBundle bundle = ResourceBundleUtil.getBundle("CLMessages", null);
            final Map<String, String> map = ResourceBundleUtil.convertMap(bundle);
            final String value = map.get("ECL0001");
            System.out.println(value);
            assertThat(value, is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top