public static Munger mungerFromOptions(MungerOptions options){
  Munger munger=new Munger(new WikibaseUris(options.wikibaseHost()));
  if (options.skipSiteLinks()) {
    munger=munger.removeSiteLinks();
  }
  if (options.labelLanguages() != null) {
    munger=munger.limitLabelLanguages(splitByComma(options.labelLanguages()));
  }
  if (options.singleLabelLanguages() != null) {
    munger=munger.singleLabelMode(splitByComma(options.singleLabelLanguages()));
  }
  if (options.keepTypes()) {
    munger=munger.keepTypes(true);
  }
  return munger;
}

public static Munger mungerFromOptions ( MungerOptions options ) { Munger munger = new Munger ( new WikibaseUris ( options . wikibaseHost ( ) ) ) ; if ( options . skipSiteLinks ( ) ) { munger = munger . removeSiteLinks ( ) ; } if ( options . labelLanguages ( ) != null ) { munger = munger . limitLabelLanguages ( splitByComma ( options . labelLanguages ( ) ) ) ; } if ( options . singleLabelLanguages ( ) != null ) { munger = munger . singleLabelMode ( splitByComma ( options . singleLabelLanguages ( ) ) ) ; } if ( options . keepTypes ( ) ) { munger = munger . keepTypes ( true ) ; } return munger ; }
build a munger from a mungeroptions instance .
