org.apache.maven.shared.filtering
Class CompositeMap
java.lang.Object
java.util.AbstractMap
org.apache.maven.shared.filtering.CompositeMap
- All Implemented Interfaces:
- java.util.Map
public class CompositeMap
- extends java.util.AbstractMap
A Map composed with some others (optional adding SystemProperties and envvar)
The get Method look in the Map list to return the corresponding value
- Version:
- $Id: CompositeMap.java 744583 2009-02-14 23:27:29Z bentmann $
- Author:
- olamy
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
CompositeMap(java.util.List maps)
|
CompositeMap(java.util.List maps,
boolean useSystemProperties,
boolean systemPropertiesFirst)
|
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CompositeMap
public CompositeMap(java.util.List maps)
- Parameters:
maps
-
CompositeMap
public CompositeMap(java.util.List maps,
boolean useSystemProperties,
boolean systemPropertiesFirst)
- Parameters:
maps
- an orderer List
of Map
useSystemProperties
- using or not the System PropertiessystemPropertiesFirst
- if with get( key ) the sysProps must wins (the internal ordered List
will have in first the System Properties)
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map
- Overrides:
get
in class java.util.AbstractMap
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet
in interface java.util.Map
- Specified by:
entrySet
in class java.util.AbstractMap
- See Also:
AbstractMap.entrySet()
getMaps
public java.util.List getMaps()
addMap
public void addMap(java.util.Map map)
isSystemPropertiesFirst
public boolean isSystemPropertiesFirst()
setSystemPropertiesFirst
public void setSystemPropertiesFirst(boolean systemPropertiesFirst)
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.