接口 Mergeable
- 所有已知实现类:
ManagedArray
,ManagedList
,ManagedMap
,ManagedProperties
,ManagedSet
,MockHttpServletRequestBuilder
,MockMultipartHttpServletRequestBuilder
public interface Mergeable
Interface representing an object whose value set can be merged with that of a parent object.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop
- 另请参阅:
ManagedSet
,ManagedList
,ManagedMap
,ManagedProperties
方法详细资料
isMergeEnabled
boolean isMergeEnabled()
Is merging enabled for this particular instance?
merge
Object merge(Object parent)
Merge the current value set with that of the supplied object.The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.
- 参数:
parent
- the object to merge with- 返回:
- the result of the merge operation
- 抛出:
IllegalArgumentException
- if the supplied parent isnull
IllegalStateException
- if merging is not enabled for this instance (i.e.mergeEnabled
equalsfalse
).