static private HashSet<String> initThreePartTLDs(){
  HashSet<String> set=new HashSet<String>();
  for (  String multiPartTLD : multiPartTLDs) {
    try {
      if (multiPartTLD.matches("^" + tld3 + "$")) {
        debugOut("adding \"" + multiPartTLD + "\"");
        set.add(multiPartTLD);
      }
    }
 catch (    Exception ex) {
      debugOut(ex);
    }
  }
  debugOut("initThreePartTLDs size=" + set.size());
  return set;
}

static private HashSet < String > initThreePartTLDs ( ) { HashSet < String > set = new HashSet < String > ( ) ; for ( String multiPartTLD : multiPartTLDs ) { try { if ( multiPartTLD . matches ( "^" + tld3 + "$" ) ) { debugOut ( "adding \"" + multiPartTLD + "\"" ) ; set . add ( multiPartTLD ) ; } } catch ( Exception ex ) { debugOut ( ex ) ; } } debugOut ( "initThreePartTLDs size=" + set . size ( ) ) ; return set ; }
initialize three - part top - level domain cache .
