Method
toName
(String[] surnames, String[] given)
Source from the content-addressed store, hash-verified
| 400 | public static final char FILLER = '<'; |
| 401 | |
| 402 | private static String toName(String[] surnames, String[] given) { |
| 403 | final StringBuilder sb = new StringBuilder(); |
| 404 | boolean first = true; |
| 405 | for (String s : surnames) { |
| 406 | if (first) { |
| 407 | first = false; |
| 408 | } else { |
| 409 | sb.append(FILLER); |
| 410 | } |
| 411 | sb.append(s); |
| 412 | } |
| 413 | sb.append(FILLER); |
| 414 | for (String s : given) { |
| 415 | sb.append(FILLER); |
| 416 | sb.append(s); |
| 417 | } |
| 418 | return sb.toString(); |
| 419 | } |
| 420 | |
| 421 | private static int getNameSize(final String[] surnames, final String[] given) { |
| 422 | int result = 0; |
Tested by
no test coverage detected