private void removeSubnetsWithAvailableIpsLessThan(List<Subnet> subnets,int availableIps){
  Iterator<Subnet> iterator=subnets.iterator();
  while (iterator.hasNext()) {
    Subnet subnet=iterator.next();
    if (subnet.getAvailableIpAddressCount() < availableIps) {
      iterator.remove();
    }
  }
}

private void removeSubnetsWithAvailableIpsLessThan ( List < Subnet > subnets , int availableIps ) { Iterator < Subnet > iterator = subnets . iterator ( ) ; while ( iterator . hasNext ( ) ) { Subnet subnet = iterator . next ( ) ; if ( subnet . getAvailableIpAddressCount ( ) < availableIps ) { iterator . remove ( ) ; } } }
updates the given list of subnets to remove subnets with number of available ips less than the given value .
