package org.raddatz.familienarchiv.user;

public class DisplayNameFormatter {

    public static String format(String title, String firstName, String lastName) {
        StringBuilder sb = new StringBuilder();
        if (title != null) sb.append(title).append(" ");
        if (firstName != null) sb.append(firstName).append(" ");
        sb.append(lastName);
        return sb.toString().trim();
    }
}
