name-parser-api/src/main/java/org/gbif/nameparser/util/NameFormatter.java
/**
   * Renders the authorship with ex authors and year
   *
   * @param sb StringBuilder to append to
   */
Renders the authorship with ex authors and year
@param sb StringBuilder to append to
Renders the authorship with ex authors and year @param sb StringBuilder to append to
public static void appendAuthorship(StringBuilder sb, Authorship auth, boolean includeYear) {
    if (auth != null && auth.exists()) {
      boolean authorsAppended = false;
      if (auth.hasExAuthors()) {
        sb.append(joinAuthors(auth.getExAuthors(), false));
        sb.append(" ex ");
        authorsAppended = true;
      }
      if (auth.hasAuthors()) {
        sb.append(joinAuthors(auth.getAuthors(), false));
        authorsAppended = true;
      }
      if (auth.getYear() != null && includeYear) {
        if (authorsAppended) {
          sb.append(", ");
        }
        sb.append(auth.getYear());
      }
    }
  }
public static void appendAuthorship ( StringBuilder sb , Authorship auth , boolean includeYear ) { if ( auth != null && auth . exists ( ) ) { boolean authorsAppended = false ; if ( auth . hasExAuthors ( ) ) { sb . append ( joinAuthors ( auth . getExAuthors ( ) , false ) ) ; sb . append ( " ex " ) ; authorsAppended = true ; } if ( auth . hasAuthors ( ) ) { sb . append ( joinAuthors ( auth . getAuthors ( ) , false ) ) ; authorsAppended = true ; } if ( auth . getYear ( ) != null && includeYear ) { if ( authorsAppended ) { sb . append ( ", " ) ; } sb . append ( auth . getYear ( ) ) ; } } }
Renders the authorship with ex authors and year
 @param sb StringBuilder to append to
Renders the authorship with ex authors and year @param sb StringBuilder to append to