@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof Publication )) { return false; } if ( !super.equals( o ) ) { return false; } // shouldn't we be relying on the Xrefs solely ?? // annotated object's equals relies on shortlabel, fullname and xrefs !! // one publication Xref in common should be enough ! either pmid, doi as primary-reference return true; }
@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof Publication )) { return false; } if ( !super.equals( o ) ) { return false; } // shouldn't we be relying on the Xrefs solely ?? // annotated object's equals relies on shortlabel, fullname and xrefs !! // one publication Xref in common should be enough ! either pmid, doi as primary-reference 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; }
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 ( !super.equals( o ) ) { return false;
if ( !super.equals( o ) ) { return false;