/** * Merger. * * @param command */ public Part merge(Part command) { super.merge(command); setParsedContent(command.getParsedContent()); setActivityState(command.getActivityState()); setDocValue(command.getDocValue()); setTokenPrefix(command.getTokenPrefix()); return this; }
@Override public int compareTo(Part other) { if (getDocCode() != null && other != null) { return getDocCode().compareTo(other.getDocCode()); } return 0; }