Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for copyMapToNewBean (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

         */
        @Test
        public void testCopy_mapToNewBean() throws Exception {
            final BeanMap src = new BeanMap();
            src.put("aaa", "aaa");
            final MyBean dest = BeanUtil.copyMapToNewBean(src, MyBean.class);
            assertThat(dest.aaa, is("aaa"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopy_mapToNewMap() throws Exception {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  2. README.md

    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
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
Back to Top