StatusType (char first) { final StatusType contentsStatus; if ('A' == first) { contentsStatus = StatusType.STATUS_ADDED; } else if ('D' == first) { contentsStatus = StatusType.STATUS_DELETED; } else if ('U' == first) { contentsStatus = StatusType.CHANGED; } else if ('C' == first) { contentsStatus = StatusType.CONFLICTED; } else if ('G' == first) { contentsStatus = StatusType.MERGED; } else if ('R' == first) { contentsStatus = StatusType.STATUS_REPLACED; } else if ('E' == first) { contentsStatus = StatusType.STATUS_OBSTRUCTED; } else { contentsStatus = StatusType.STATUS_NORMAL; } return contentsStatus; }