public boolean matchInetNetwork(InetAddress ip){
  boolean sameNet=false;
  for (Iterator<InetNetwork> iter=networks.iterator(); (!sameNet) && iter.hasNext(); ) {
    InetNetwork network=iter.next();
    sameNet=network.contains(ip);
  }
  return sameNet;
}

public boolean matchInetNetwork ( InetAddress ip ) { boolean sameNet = false ; for ( Iterator < InetNetwork > iter = networks . iterator ( ) ; ( ! sameNet ) && iter . hasNext ( ) ; ) { InetNetwork network = iter . next ( ) ; sameNet = network . contains ( ip ) ; } return sameNet ; }
return true if passed inetaddress match a network which was used to construct the netmatcher .
