17181920212223
private final XNickname empty = new XNickname(); @Override public Field<?> read(Map<String, Object> element) { Object subject = element.get(Dictionary.FIELD_SUBJECT); return subject == null ? this.empty : new XNickname(subject.toString()); }
9101112131415
*/ public class NicknameFieldParser implements FieldParser<String> { @Override public Field<?> read(String element) { return new XNickname(element); }