code: public boolean isMatch(InetAddress inetAddress)
    {
      byte []bytes = inetAddress.getAddress();
  
      if (bytes.length != _address.length)
        return false;
  
      for (int i = 0; i < bytes.length; i++) {
        if (bytes[i] == _address[i]) {
        }
        else if (_subnetByte < i) {
          return true;
        }
        else if (i == _subnetByte) {
          return (bytes[i] & _subnetMask) == (_address[i] & _subnetMask);
        }
        else {
          return false;
        }
      }
  
      return true;
    }
docs: Returns true if the address is in this network.