public boolean hasAvailableAddresses(){
  if (isPoolFull() || getPoolAvailability() == 0)   return false;
 else   return true;
}

public boolean hasAvailableAddresses ( ) { if ( isPoolFull ( ) || getPoolAvailability ( ) == 0 ) return false ; else return true ; }
determines if there are available leases in this dhcppool .
