- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for copyMapToNewBean (0.24 sec)
-
src/main/java/org/codelibs/core/beans/util/BeanUtil.java
*/ public static <T> T copyMapToNewBean(final Map<String, ? extends Object> src, final Class<T> destClass) { return copyMapToNewBean(src, destClass, DEFAULT_OPTIONS); } public static <T> T copyMapToNewBean(final Map<String, ? extends Object> src, final Class<T> destClass, final Consumer<CopyOptions> option) { return copyMapToNewBean(src, destClass, buildCopyOptions(option)); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 21.5K bytes - Viewed (0) -
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java
if (response.isExists()) { final Map<String, Object> source = response.getSource(); final T bean = BeanUtil.copyMapToNewBean(source, clazz, option -> { option.converter(new EsTimestampConverter(), timestampFields).excludeWhitespace(); option.exclude(OpenSearchAccessResult.ACCESS_RESULT_DATA); });
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 23.6K bytes - Viewed (0) -
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 {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 34.5K bytes - Viewed (0)