class AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> {

  @Override
  public final Boolean visitIpWildcardSetIpSpace(IpWildcardSetIpSpace ipWildcardSetIpSpace) {
    for (IpWildcard w : ipWildcardSetIpSpace.getBlacklist()) {
      if (w.containsIp(_ip)) {
        return false;
      }
    }
    for (IpWildcard w : ipWildcardSetIpSpace.getWhitelist()) {
      if (w.containsIp(_ip)) {
        return true;
      }
    }
    return false;
  }

  public  AbstractIpSpaceContainsIp(Ip ip);

}