Class Utilities

java.lang.Object
edu.harvard.seas.pl.abcdatalog.util.Utilities

public final class Utilities extends Object
"Static" class containing utility methods.
  • Field Details

    • concurrency

      public static final int concurrency
  • Method Details

    • createConcurrentSet

      public static <T> Set<T> createConcurrentSet()
    • createConcurrentMap

      public static <K, V> ConcurrentMap<K,V> createConcurrentMap()
    • getSetFromMap

      public 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.
      Parameters:
      map - the map
      key - the key
      Returns:
      the set