public static < S extends Sequence < C > , C extends Compound > String getIDFormat ( List < S > sequences ) { int length = 0 ; for ( S as : sequences ) { length = Math . max ( length , ( as . getAccession ( ) == null ) ? 0 : as . getAccession ( ) . toString ( ) . length ( ) ) ; } return ( length == 0 ) ? null : "%-" + ( length + 1 ) + "s" ; }
Creates format String for accession IDs