public String getRigid() { return this.rigid != null ? this.rigid.getValue() : null; }
public String getStandardInchi() { return standardInchi != null ? standardInchi.getValue() : null; }
public String getSmile() { return smile != null ? smile.getValue() : null; }
public String getRogid() { return this.rogid != null ? this.rogid.getValue() : null; }
public String getStandardInchiKey() { return standardInchiKey != null ? standardInchiKey.getValue() : null; }
public String getRigid() { return this.rigid != null ? this.rigid.getValue() : null; }
/** * * @param checksum * @return the hashcode consistent with the equals method for this comparator */ public static int hashCode(Checksum checksum){ if (unambiguousChecksumComparator == null){ unambiguousChecksumComparator = new UnambiguousChecksumComparator(); } if (checksum == null){ return 0; } int hashcode = 31; CvTerm method = checksum.getMethod(); hashcode = 31*hashcode + UnambiguousCvTermComparator.hashCode(method); String value = checksum.getValue(); hashcode = 31*hashcode + value.hashCode(); return hashcode; } }
public void writeChecksum(Checksum checksum) throws IOException { if (checksum != null){ // first method escapeAndWriteString(checksum.getMethod().getShortName()); getWriter().write(MitabUtils.XREF_SEPARATOR); // then value escapeAndWriteString(checksum.getValue()); } }