cdm/src/main/java/ucar/nc2/util/CompareNetcdf2.java
private boolean checkEnums(Group org, Group copy) {
    boolean ok = true;

    for (EnumTypedef enum1 : org.getEnumTypedefs()) {
      if (showCompare) f.format("compare Enum %s%n", enum1.getShortName());
      EnumTypedef enum2 = copy.findEnumeration(enum1.getShortName());
      if (enum2 == null) {
        f.format("  ** Enum %s not in file2 %n", enum1.getShortName());
        ok = false;
        continue;
      }
      if (!enum1.equals(enum2)) {
        f.format("  ** Enum %s not equal%n  %s%n  %s%n", enum1.getShortName(), enum1, enum2);
        ok = false;
      }
    }

    for (EnumTypedef enum2 : copy.getEnumTypedefs()) {
      EnumTypedef enum1 = org.findEnumeration(enum2.getShortName());
      if (enum1 == null) {
        f.format("  ** Enum %s not in file1 %n", enum2.getShortName());
        ok = false;
      }
    }
    return ok;
  }
private boolean checkEnums(Group org, Group copy) {
    boolean ok = true;

    for (EnumTypedef enum1 : org.getEnumTypedefs()) {
      if (showCompare) f.format("compare Enum %s%n", enum1.getShortName());
      EnumTypedef enum2 = copy.findEnumeration(enum1.getShortName());
      if (enum2 == null) {
        f.format("  ** Enum %s not in file2 %n", enum1.getShortName());
        ok = false;
        continue;
      }
      if (!enum1.equals(enum2)) {
        f.format("  ** Enum %s not equal%n  %s%n  %s%n", enum1.getShortName(), enum1, enum2);
        ok = false;
      }
    }

    for (EnumTypedef enum2 : copy.getEnumTypedefs()) {
      EnumTypedef enum1 = org.findEnumeration(enum2.getShortName());
      if (enum1 == null) {
        f.format("  ** Enum %s not in file1 %n", enum2.getShortName());
        ok = false;
      }
    }
    return ok;
  }
private boolean checkEnums ( Group org , Group copy ) { boolean ok = true ; for ( EnumTypedef enum1 : org . getEnumTypedefs ( ) ) { if ( showCompare ) f . format ( "compare Enum %s%n" , enum1 . getShortName ( ) ) ; EnumTypedef enum2 = copy . findEnumeration ( enum1 . getShortName ( ) ) ; if ( enum2 == null ) { f . format ( "  ** Enum %s not in file2 %n" , enum1 . getShortName ( ) ) ; ok = false ; continue ; } if ( ! enum1 . equals ( enum2 ) ) { f . format ( "  ** Enum %s not equal%n  %s%n  %s%n" , enum1 . getShortName ( ) , enum1 , enum2 ) ; ok = false ; } } for ( EnumTypedef enum2 : copy . getEnumTypedefs ( ) ) { EnumTypedef enum1 = org . findEnumeration ( enum2 . getShortName ( ) ) ; if ( enum1 == null ) { f . format ( "  ** Enum %s not in file1 %n" , enum2 . getShortName ( ) ) ; ok = false ; } } return ok ; }
return an arrayList of paired objects.
return an arrayList of paired objects .