public class ModuleDeps extends LinkedHashMap<String,ModuleDepInfo> implements Serializable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ModuleDeps() |
ModuleDeps(ModuleDeps other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(String key,
ModuleDepInfo info)
Adds the specified pair to the map.
|
boolean |
addAll(ModuleDeps other)
Adds all of the map entries from other to this map
|
ModuleDeps |
andWith(ModuleDepInfo info)
Calls
ModuleDepInfo.andWith(ModuleDepInfo) on each of the
entries in this list. |
boolean |
containsDep(String moduleName,
BooleanTerm term)
Returns true if the map contains the module name with the specified term.
|
Set<String> |
getModuleIds()
Provided for backwards compatibility
|
Set<String> |
getModuleIds(Map<?,?> formulaCache)
Returns a set of module ids for the keys in this map.
|
Map<String,String> |
getModuleIdsWithComments()
Returns a map of module ids with comments for the keys in this map.
|
ModuleDepInfo |
put(String key,
ModuleDepInfo value) |
void |
putAll(Map<? extends String,? extends ModuleDepInfo> map) |
ModuleDeps |
resolveWith(Features features)
Calls
ModuleDepInfo.resolveWith(Features) on each of the values in the map. |
ModuleDeps |
resolveWith(Features features,
boolean coerceUndefinedToFalse)
Calls
ModuleDepInfo.resolveWith(Features) on each of the values in the map. |
ModuleDeps |
simplify(Map<?,?> formulaCache)
Simplifies the boolean formulas for each contained
ModuleDepInfo |
boolean |
subtract(String key,
ModuleDepInfo subInfo)
Subtracts the terms in
subInfo from the terms in the module
dep info object associated with the specified key. |
boolean |
subtractAll(ModuleDeps toSub)
Calls
subtract(String, ModuleDepInfo) for each of the map
entries in toSub |
clear, containsValue, get, removeEldestEntry
clone, containsKey, entrySet, isEmpty, keySet, remove, size, values
equals, hashCode, toString
public ModuleDeps()
public ModuleDeps(ModuleDeps other)
ModuleDepInfo
objects) of other
.other
- public boolean add(String key, ModuleDepInfo info)
key
- The module name to associate with the dep info objectinfo
- the ModuleDepInfo objectpublic boolean addAll(ModuleDeps other)
other
- the map containing entries to addpublic boolean containsDep(String moduleName, BooleanTerm term)
ModuleDepInfo.containsTerm(BooleanTerm)
for a description of
containment.moduleName
- The module nameterm
- the boolean termpublic ModuleDeps andWith(ModuleDepInfo info)
ModuleDepInfo.andWith(ModuleDepInfo)
on each of the
entries in this list.info
- the ModuleDepInfo
who's formula will be anded with the
entries in the list.public boolean subtract(String key, ModuleDepInfo subInfo)
subInfo
from the terms in the module
dep info object associated with the specified key.
See ModuleDepInfo.subtract(ModuleDepInfo)
for a description of
what it means to subtract boolean terms.
key
- The module namesubInfo
- The object containing the terms to subtractpublic boolean subtractAll(ModuleDeps toSub)
subtract(String, ModuleDepInfo)
for each of the map
entries in toSub
toSub
- The map to subtract from this mappublic Set<String> getModuleIds()
public Set<String> getModuleIds(Map<?,?> formulaCache)
formulaCache
- the formula cache or nullpublic Map<String,String> getModuleIdsWithComments()
public ModuleDeps resolveWith(Features features)
ModuleDepInfo.resolveWith(Features)
on each of the values in the map.features
- the feature set to apply.public ModuleDeps resolveWith(Features features, boolean coerceUndefinedToFalse)
ModuleDepInfo.resolveWith(Features)
on each of the values in the map.features
- the feature set to apply.coerceUndefinedToFalse
- if true, undefined features will be treated as falsepublic ModuleDeps simplify(Map<?,?> formulaCache)
ModuleDepInfo
formulaCache
- the formula cachepublic ModuleDepInfo put(String key, ModuleDepInfo value)
put
in interface Map<String,ModuleDepInfo>
put
in class HashMap<String,ModuleDepInfo>
public void putAll(Map<? extends String,? extends ModuleDepInfo> map)
putAll
in interface Map<String,ModuleDepInfo>
putAll
in class HashMap<String,ModuleDepInfo>
Copyright © 2011-2015 IBM. All Rights Reserved.