Interface CollectionHelper
- All Known Implementing Classes:
DefaultCollectionHelper
public interface CollectionHelper
An interface for collection helper functions.
-
Method Details
-
mergeMaps
Map<String,Object> mergeMaps(Map<String, Object> firstMap, Map<String, Object> secondMap, BinaryOperator<Object> mergeFunction) Merges two maps. If a value already exists for a given key in a resulting map
then the mergeFunction is used to resolve the issue. -
mergeMaps
Merges the list of maps. If a value already exists for a given key in a resulting map
then the mergeFunction is used to resolve the issue. -
mergeMaps
Merges the list of maps. -
defaultDeepMergeFunction
BinaryOperator<Object> defaultDeepMergeFunction()Resolver for twoMapvalues that have the same key.- Returns:
- the
BinaryOperatorto merge two values with the same key.
-