public boolean zonesetHasMore(WBEMClient client,CIMObjectPath zonesetPath,int removeCount) throws WBEMException {
  CloseableIterator<CIMObjectPath> zoneItr=null;
  int count=0;
  try {
    zoneItr=client.associatorNames(zonesetPath,_Brocade_ZoneInZoneSet,_Brocade_Zone,null,null);
    while (zoneItr.hasNext()) {
      if (zoneItr.next() != null) {
        count++;
      }
      if (count > removeCount) {
        return true;
      }
    }
  }
  finally {
    if (zoneItr != null) {
      zoneItr.close();
    }
  }
  return false;
}

public boolean zonesetHasMore ( WBEMClient client , CIMObjectPath zonesetPath , int removeCount ) throws WBEMException { CloseableIterator < CIMObjectPath > zoneItr = null ; int count = 0 ; try { zoneItr = client . associatorNames ( zonesetPath , _Brocade_ZoneInZoneSet , _Brocade_Zone , null , null ) ; while ( zoneItr . hasNext ( ) ) { if ( zoneItr . next ( ) != null ) { count ++ ; } if ( count > removeCount ) { return true ; } } } finally { if ( zoneItr != null ) { zoneItr . close ( ) ; } } return false ; }
checks to see if the zoneset has a number of zones that is greater than the count parameter . this function is used when deleting zones to check if the zoneset will become empty .
