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

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

public class MultivaluedAttributeMerger
extends 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: 43106 $ $Date: 2008-02-14 11:22:40 -0600 (Thu, 14 Feb 2008) $
Author:
Eric Dalquist

Constructor Summary
MultivaluedAttributeMerger()
           
 
Method Summary
 Map<String,List<Object>> mergeAttributes(Map<String,List<Object>> toModify, Map<String,List<Object>> toConsider)
          Please note that the toModify 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 Map<String,List<Object>> mergeAttributes(Map<String,List<Object>> toModify,
                                                Map<String,List<Object>> toConsider)
Please note that the toModify map is modified.

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


Copyright © 1998-2008 Java Architectures Special Interest Group. All Rights Reserved.