Class Utilities
java.lang.Object
edu.harvard.seas.pl.abcdatalog.util.Utilities
"Static" class containing utility methods.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> ConcurrentMap <K, V> static <T> Set
<T> static <K,
V> Set <V> getSetFromMap
(Map<K, Set<V>> map, K key) Returns the set in map associated with key, creating a new set if needed.
-
Field Details
-
concurrency
public static final int concurrency
-
-
Method Details
-
createConcurrentSet
-
createConcurrentMap
-
getSetFromMap
Returns the set in map associated with key, creating a new set if needed.- Parameters:
map
- the mapkey
- the key- Returns:
- the set
-