View Javadoc

1   package org.kuali.common.util.xml.jaxb.wrapper;
2   
3   import java.util.HashMap;
4   import java.util.Map;
5   
6   import javax.xml.bind.annotation.XmlAnyElement;
7   
8   import org.kuali.common.util.Assert;
9   
10  public class MapWrapper<K, V> {
11  
12  	@XmlAnyElement(lax = true)
13  	private final Map<K, V> map;
14  
15  	@SuppressWarnings("unused")
16  	private MapWrapper() {
17  		this(new HashMap<K, V>());
18  	}
19  
20  	public MapWrapper(Map<K, V> map) {
21  		Assert.noNulls(map);
22  		this.map = map;
23  	}
24  
25  	public Map<K, V> getMap() {
26  		return map;
27  	}
28  
29  }