@SuppressWarnings({"SuspiciousMethodCalls"}) public static boolean containsAll(Map<?,?> base,Map<?,?> map){
  assert base != null;
  assert map != null;
  for (  Map.Entry<?,?> entry : map.entrySet())   if (base.containsKey(entry.getKey())) {
    Object val=base.get(entry.getKey());
    if (val == null && entry.getValue() == null)     continue;
    if (val == null || entry.getValue() == null || !val.equals(entry.getValue()))     return false;
  }
 else   return false;
  return true;
}

@ SuppressWarnings ( { "SuspiciousMethodCalls" } ) public static boolean containsAll ( Map < ? , ? > base , Map < ? , ? > map ) { assert base != null ; assert map != null ; for ( Map . Entry < ? , ? > entry : map . entrySet ( ) ) if ( base . containsKey ( entry . getKey ( ) ) ) { Object val = base . get ( entry . getKey ( ) ) ; if ( val == null && entry . getValue ( ) == null ) continue ; if ( val == null || entry . getValue ( ) == null || ! val . equals ( entry . getValue ( ) ) ) return false ; } else return false ; return true ; }
checks if the map passed in is contained in base map .
