public boolean equals(Object o) { if ( this == o ) { return true; } if ( !( o instanceof Institution ) ) { return false; } if ( !super.equals( o ) ) { return false; } Institution that = (Institution) o; return true; }
public boolean equals(Object o) { if ( this == o ) { return true; } if ( !( o instanceof Institution ) ) { return false; } if ( !super.equals( o ) ) { return false; } Institution that = (Institution) o; return true; }
@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; } // 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; }
/** * Equality for BioSources is currently based on equality for <code>AnnotatedObjects</code> and taxIds (String * representation of an integer). * * @param o The object to check * * @return true if the parameter equals this object, false otherwise * * @see uk.ac.ebi.intact.model.AnnotatedObjectImpl */ @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof BioSource ) ) { return false; } if ( !super.equals( o ) ) { return false; } final BioSource bioSource = ( BioSource ) o; if ( taxId == null ) { return false; } return ( taxId.equals( bioSource.getTaxId() ) ); }
/** * Equality for BioSources is currently based on equality for <code>AnnotatedObjects</code> and taxIds (String * representation of an integer). * * @param o The object to check * * @return true if the parameter equals this object, false otherwise * * @see uk.ac.ebi.intact.model.AnnotatedObjectImpl */ @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof BioSource ) ) { return false; } if ( !super.equals( o ) ) { return false; } final BioSource bioSource = ( BioSource ) o; if ( taxId == null ) { return false; } return ( taxId.equals( bioSource.getTaxId() ) ); }
/** * Equality for BioSources is currently based on equality for <code>AnnotatedObjects</code> and taxIds (String * representation of an integer). * * @param o The object to check * * @return true if the parameter equals this object, false otherwise * * @see uk.ac.ebi.intact.model.AnnotatedObjectImpl */ @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof BioSource ) ) { return false; } if ( !super.equals( o ) ) { return false; } final BioSource bioSource = ( BioSource ) o; if ( taxId == null ) { return false; } return ( taxId.equals( bioSource.getTaxId() ) ); }
@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; }
/** * Equality for CvObject is currently based on equality for primary id of Xref having the qualifier of identity and * short label if there is xref of identity. We need to equals method to avoid circular references when invoking * equals methods * * @param obj The object to check * * @return true if given object has an identity xref and its primary id matches to this' object's primary id or * short label if there is no identity xref. * * @see Xref */ @Override public boolean equals( Object obj ) { if ( !( obj instanceof CvObject ) ) { return false; } final CvObject other = ( CvObject ) obj; if (!getObjClass().equals(other.getObjClass())) { return false; } if (( identifier != null && !identifier.equals(other.getIdentifier()))) { return false; } return super.equals(other); }
/** * Equality for CvObject is currently based on equality for primary id of Xref having the qualifier of identity and * short label if there is xref of identity. We need to equals method to avoid circular references when invoking * equals methods * * @param obj The object to check * * @return true if given object has an identity xref and its primary id matches to this' object's primary id or * short label if there is no identity xref. * * @see Xref */ @Override public boolean equals( Object obj ) { if ( !( obj instanceof CvObject ) ) { return false; } final CvObject other = ( CvObject ) obj; if (!getObjClass().equals(other.getObjClass())) { return false; } if (( identifier != null && !identifier.equals(other.getIdentifier()))) { return false; } return super.equals(other); }
if ( !super.equals( obj ) ) { return false;
return false; if ( !super.equals( o ) ) { return false;
public boolean equals( Object o, boolean includeLinkedFeature, boolean includeRanges ) { if ( this == o ) return true; if ( !( o instanceof Feature ) ) return false; if ( !super.equals( o ) ) return false;
public boolean equals( Object o, boolean includeLinkedFeature, boolean includeRanges ) { if ( this == o ) return true; if ( !( o instanceof Feature ) ) return false; if ( !super.equals( o ) ) return false;
if ( !super.equals( o ) ) { return false;
if ( !super.equals( o ) ) { return false;