@Override public boolean equals( Object o ) { if ( !super.equals( o ) ) { return false; } if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } final InteractorImpl that = ( InteractorImpl ) o; if ( activeInstances != null ? !activeInstances.equals( that.activeInstances ) : that.activeInstances != null ) { return false; } if ( bioSource != null ? !bioSource.equals( that.bioSource ) : that.bioSource != null ) { return false; } if ( interactorType != null ? !interactorType.equals( that.interactorType ) : that.interactorType != null ) { return false; } return true; }
/** * Equality for Experiments is currently based on equality for <code>AnnotatedObjects</code> and BioSources only. * * @param o The object to check * * @return true if the parameter equals this object, false otherwise * * @see AnnotatedObject */ @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } if ( !super.equals( o ) ) { return false; } final Experiment that = ( Experiment ) o; if ( !bioSource.equals( that.bioSource ) ) { return false; } if ( publication != null ? !publication.equals( that.publication ) : that.publication != null ) { return false; } return true; }
if (!protein1.getBioSource().equals(protein2.getBioSource())) { buffer.append(' ').append("(xeno)");
protected boolean equals( Object o, boolean checkOnActiveInstances) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } if ( !super.equals( o ) ) { return false; } final InteractorImpl that = ( InteractorImpl ) o; if (checkOnActiveInstances) { if ( activeInstances != null ? !CollectionUtils.isEqualCollection(activeInstances, that.activeInstances ) : that.activeInstances != null ) { return false; } } if ( bioSource != null ? !bioSource.equals( that.bioSource ) : that.bioSource != null ) { return false; } if ( interactorType != null ? !interactorType.equals( that.interactorType ) : that.interactorType != null ) { return false; } return true; }
protected boolean equals( Object o, boolean checkOnActiveInstances) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } if ( !super.equals( o ) ) { return false; } final InteractorImpl that = ( InteractorImpl ) o; if (checkOnActiveInstances) { if ( activeInstances != null ? !CollectionUtils.isEqualCollection(activeInstances, that.activeInstances ) : that.activeInstances != null ) { return false; } } if ( bioSource != null ? !bioSource.equals( that.bioSource ) : that.bioSource != null ) { return false; } if ( interactorType != null ? !interactorType.equals( that.interactorType ) : that.interactorType != null ) { return false; } return true; }
if (!protein1.getBioSource().equals( biosource2 )) { buffer.append(" Organism="); buffer.append( biosource2.getFullName() ).append( " [NCBI_TaxID=" ).append( biosource2.getTaxId() ).append( "]" );
if (!protein1.getBioSource().equals(protein2.getBioSource())) { buffer.append(' ').append("(xeno)");
if ( bioSource!= null ? !bioSource.equals( that.bioSource) : that.bioSource != null ) { return false;
if ( bioSource!= null ? !bioSource.equals( that.bioSource) : that.bioSource != null ) { return false;
if (!expressedIn.equals( component.getExpressedIn() )){ return false;
if (!expressedIn.equals( component.getExpressedIn() )){ return false;