org.jasig.portal.services.persondir.support.merger
Class MultivaluedAttributeMerger

java.lang.Object
  extended by org.jasig.portal.services.persondir.support.merger.MultivaluedAttributeMerger
All Implemented Interfaces:
IAttributeMerger

public class MultivaluedAttributeMerger
extends java.lang.Object
implements IAttributeMerger

Merger that retains values from both maps. If a value exists for a key in both maps the following is done:

Version:
$Revision: 1.2 $ $Date: 2004/12/14 03:12:19 $
Author:
Eric Dalquist edalquist@unicon.net

Constructor Summary
MultivaluedAttributeMerger()
           
 
Method Summary
 java.util.Map mergeAttributes(java.util.Map dest, java.util.Map source)
          Please note that the dest map is modified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultivaluedAttributeMerger

public MultivaluedAttributeMerger()
Method Detail

mergeAttributes

public java.util.Map mergeAttributes(java.util.Map dest,
                                     java.util.Map source)
Please note that the dest map is modified.

Specified by:
mergeAttributes in interface IAttributeMerger
Parameters:
dest - - modify this map
source - - in consideration of this map
Returns:
the modified Map
See Also:
IAttributeMerger.mergeAttributes(java.util.Map, java.util.Map)