Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for copyBeanToNewMap (0.07 sec)

  1. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

         *
         * @param src The source Bean. Must not be {@literal null}.
         * @return The newly copied Bean.
         */
        public static Map<String, Object> copyBeanToNewMap(final Object src) {
            return copyBeanToNewMap(src, DEFAULT_OPTIONS);
        }
    
        /**
         * Copies the source Bean to a new instance of {@literal LinkedHashMap} and returns it.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/RenderDataUtil.java

            if (value == null) {
                return;
            }
    
            if (value instanceof Entity) {
                data.register(key, BeanUtil.copyBeanToNewMap(value));
            } else {
                if (value instanceof final Collection<?> coll && !coll.isEmpty()) {
                    // care performance for List that the most frequent pattern
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            src.aaa = "aaa";
            @SuppressWarnings("unchecked")
            final Map<String, Object> dest = BeanUtil.copyBeanToNewMap(src, HashMap.class);
            assertThat(dest.get("aaa"), is((Object) "aaa"));
            final BeanMap dest2 = BeanUtil.copyBeanToNewMap(src, BeanMap.class);
            assertThat(dest2.get("aaa"), is((Object) "aaa"));
        }
    
        /**
         * @throws Exception
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/RenderDataUtilTest.java

            assertEquals(3, resultList.size());
    
            // First element should be converted to Map since it's an Entity
            assertTrue(resultList.get(0) instanceof Map);
            // All elements are converted by BeanUtil.copyBeanToNewMap when first element is Entity
            assertTrue(resultList.get(1) instanceof Map);
            assertTrue(resultList.get(2) instanceof Map);
        }
    
        public void test_register_listWithNonEntityFirst() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. README.md

    BeanUtil.copyBeanToBean(source, destination);
    BeanUtil.copyBeanToBean(source, destination, options -> 
        options.exclude("password", "internalId"));
    
    // Convert between beans and maps
    Map<String, Object> map = BeanUtil.copyBeanToNewMap(bean);
    MyBean newBean = BeanUtil.copyMapToNewBean(map, MyBean.class);
    ```
    
    ### Type Conversion
    ```java
    import org.codelibs.core.convert.*;
    
    // Safe type conversions with null handling
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            @SuppressWarnings("unchecked")
            final Map<String, Object> source = obj instanceof Map ? (Map<String, Object>) obj : BeanUtil.copyBeanToNewMap(obj);
            final String id = (String) source.remove(fessConfig.getIndexFieldId());
            source.remove(fessConfig.getIndexFieldVersion());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 121.9K bytes
    - Viewed (0)
Back to top