code: public void setBlacklist(InetAddress[] addresses) {
          if (addresses == null) {
              throw new NullPointerException("addresses");
          }
          blacklist.clear();
          for (int i = 0; i < addresses.length; i++) {
              InetAddress addr = addresses[i];
              block(addr);
          }
      }
docs: Sets the addresses to be blacklisted.
  
  NOTE: this call will remove any previously blacklisted addresses.
  
  @param addresses an array of addresses to be blacklisted.