cdm/src/main/java/ucar/nc2/dataset/CoordinateSystem.java
public static boolean isSubset(Collection<Dimension> subset, Collection<Dimension> set) {
    for (Dimension d : subset) {
      if (!(set.contains(d)))
        return false;
    }
    return true;
  }
public static boolean isSubset(Collection<Dimension> subset, Collection<Dimension> set) {
    for (Dimension d : subset) {
      if (!(set.contains(d)))
        return false;
    }
    return true;
  }
public static boolean isSubset ( Collection < Dimension > subset , Collection < Dimension > set ) { for ( Dimension d : subset ) { if ( ! ( set . contains ( d ) ) ) return false ; } return true ; }
Test if all the Dimensions in subset are in set
@param subset is this a subset
@param set of this?
@return true if all the Dimensions in subset are in set
Test if all the Dimensions in subset are in set