org.jasig.services.persondir.support.merger
Class ReplacingAttributeAdder
java.lang.Object
org.jasig.services.persondir.support.merger.ReplacingAttributeAdder
- All Implemented Interfaces:
- IAttributeMerger
public class ReplacingAttributeAdder
- extends Object
- implements IAttributeMerger
Attribute merge strategy whereby considered attributes over-write
previously set values for attributes with colliding names.
- Version:
- $Revision: 2871 $ $Date: 2006-12-08 14:41:33 -0500 (Fri, 08 Dec 2006) $
- Author:
- andrew.petro@yale.edu
|
Method Summary |
Map |
mergeAttributes(Map toModify,
Map toConsider)
Simply puts all the values in toConsider into toModify and returns toModify. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplacingAttributeAdder
public ReplacingAttributeAdder()
mergeAttributes
public Map mergeAttributes(Map toModify,
Map toConsider)
- Simply puts all the values in toConsider into toModify and returns toModify.
This means that for keys in both toConsider and toModify, the
value in toConsider will be controlling.
- Specified by:
mergeAttributes in interface IAttributeMerger
- Parameters:
toModify - - the Map we are to modifytoConsider - - the Map we are to consider in modifying toModify
- Returns:
- the result of toModify.putAll(toConsider)
Copyright © 1998-2007 Java Architectures Special Interest Group. All Rights Reserved.