/** * 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; }
return false; if ( publication != null ? !publication.equals( that.publication ) : that.publication != null ) { return false;
return false; if ( publication != null ? !publication.equals( that.publication ) : that.publication != null ) { return false;