/** * {@inheritDoc} */ @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } final UniprotProtein that = (UniprotProtein) o; if ( !id.equals( that.id ) ) { return false; } if ( !organism.equals( that.organism ) ) { return false; } return true; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result; result = id.hashCode(); result = 29 * result + organism.hashCode(); return result; }
public Organism( int taxid ) { setTaxid( taxid ); }
String organismName = organism.getScientificName().getValue(); String entryTaxid = taxids.get( 0 ).getValue(); Organism o = new Organism( Integer.parseInt( entryTaxid ), organismName ); o.setCommonName(organism.getCommonName().getValue()); o.getParents().add( organism.getCommonName().getValue() ); o.getParents().add( organism.getSynonym().getValue() );
String tax = Integer.toString(prot.getOrganism().getTaxid()); if (taxId.equalsIgnoreCase(tax)){ return true;
/** * {@inheritDoc} */ @Override public int hashCode() { int result; result = primaryAc.hashCode(); result = 31 * result + organism.hashCode(); return result; } }
/** * {@inheritDoc} */ @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } UniprotProteinTranscript that = ( UniprotProteinTranscript ) o; if ( !primaryAc.equals( that.getPrimaryAc() ) ) { return false; } if ( !organism.equals( that.getOrganism() ) ) { return false; } return true; }