Package org.codehaus.groovy.tools.gse
Class StringSetMap
Map from string keys to lazily created sets of strings.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty map.StringSetMap(StringSetMap other) Creates a copy of another string-set map. -
Method Summary
Modifier and TypeMethodDescriptionReturns the set for the supplied key, creating it if necessary.voidExpands the relation represented by this map to its transitive closure.Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
StringSetMap
public StringSetMap()Creates an empty map. -
StringSetMap
Creates a copy of another string-set map.- Parameters:
other- the map to copy
-
-
Method Details
-
get
Returns the set for the supplied key, creating it if necessary. -
makeTransitiveHull
public void makeTransitiveHull()Expands the relation represented by this map to its transitive closure.
-