001package org.biojava.nbio.structure.chem; 002 003import org.biojava.nbio.structure.io.cif.CifBean; 004 005import java.util.Objects; 006 007/** 008 * Properties of the chemical component descriptor. 009 * @author Sebastian Bittrich 010 * @since 6.0.0 011 */ 012public class ChemCompDescriptor implements CifBean { 013 private static final long serialVersionUID = 1078685833800736278L; 014 private String compId; 015 private String type; 016 private String program; 017 private String programVersion; 018 private String descriptor; 019 020 public String getCompId() { 021 return compId; 022 } 023 024 public void setCompId(String compId) { 025 this.compId = compId; 026 } 027 028 public String getType() { 029 return type; 030 } 031 032 public void setType(String type) { 033 this.type = type; 034 } 035 036 public String getProgram() { 037 return program; 038 } 039 040 public void setProgram(String program) { 041 this.program = program; 042 } 043 044 public String getProgramVersion() { 045 return programVersion; 046 } 047 048 public void setProgramVersion(String programVersion) { 049 this.programVersion = programVersion; 050 } 051 052 public String getDescriptor() { 053 return descriptor; 054 } 055 056 public void setDescriptor(String descriptor) { 057 this.descriptor = descriptor; 058 } 059 060 @Override 061 public boolean equals(Object o) { 062 if (this == o) return true; 063 if (o == null || getClass() != o.getClass()) return false; 064 ChemCompDescriptor that = (ChemCompDescriptor) o; 065 return Objects.equals(compId, that.compId) && 066 Objects.equals(type, that.type) && 067 Objects.equals(program, that.program) && 068 Objects.equals(programVersion, that.programVersion) && 069 Objects.equals(descriptor, that.descriptor); 070 } 071 072 @Override 073 public int hashCode() { 074 return Objects.hash(compId, type, program, programVersion, descriptor); 075 } 076 077 @Override 078 public String toString() { 079 return "ChemCompDescriptor [comp_id=" + compId + 080 ", type=" + type + 081 ", program=" + program + 082 ", program_version=" + programVersion + 083 ", descriptor=" + descriptor + "]"; 084 } 085}