@Override public String toString() { return String.format("%s -> %s", taxon.getDisplayName(Locale.ENGLISH), otherTaxon.getDisplayName(Locale.ENGLISH)); } });
@Override public String toString() { final StringBuilder buffer = new StringBuilder(); buffer.append(taxon.getDisplayName(Locale.ITALIAN)).append("\n"); // FIXME locale for (final Difference difference : differences) { buffer.append(difference.toString()).append("\n"); } return buffer.toString(); } }
final boolean isSpeciesOrSubSpecies = Character.isLowerCase(taxon.getDisplayName().charAt(0)); if (isSpeciesOrSubSpecies && !nullEquals(taxon.getDisplayName(Locale.ENGLISH), otherTaxon.getDisplayName(Locale.ENGLISH)))
@Override public void preVisit (final @Nonnull Taxon taxon) { final List<? extends Taxon> synonyms = taxon.findSynonyms().results(); if (synonyms.isEmpty()) { // TODO: missing counterpart } else if (synonyms.size() == 1) { final TaxonDifferenceSet taxonDifferenceSet = new TaxonDifferenceSet(taxon, synonyms.iterator().next()); if (!taxonDifferenceSet.isEmpty()) { differenceList.add(taxonDifferenceSet); } } else // FIXME: indeed you should only retain the one of the target taxonomy { System.err.println("WARNING Synonym count > 1 for " + taxon.getDisplayName()); // throw new RuntimeException("Synonym count > 1: " + synonyms); } } });
"", taxon.getDisplayName(Locale.ENGLISH), taxon.getScientificName(), fileNameBase });