public interface MergableProperties
BinderProperties,
ProducerProperties,
ConsumerProperties| Modifier and Type | Method and Description |
|---|---|
default void |
copyProperties(Object source,
Object target) |
default void |
handleMapMerging(Object value,
Object v) |
default boolean |
isEmptyMapAtDestination(Object v) |
default boolean |
isMergableByMap(Object v) |
default void |
merge(MergableProperties mergable,
String... explicitlySetProperties)
A variation of
BeanUtils.copyProperties(Object, Object) specifically designed to copy properties using the following rule: |
default void merge(MergableProperties mergable, String... explicitlySetProperties)
BeanUtils.copyProperties(Object, Object) specifically designed to copy properties using the following rule:
- If source property is null then override with the same from mergable. - If source property is an array and it is empty then override with same from mergable. - If source property is mergable then merge.
default boolean isEmptyMapAtDestination(Object v)
default boolean isMergableByMap(Object v)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.