- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for copyBeanToNewMap (0.05 sec)
-
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) -
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) -
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)