Tabnine Logo
AnnotatedObjectImpl.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
uk.ac.ebi.intact.model.AnnotatedObjectImpl

Best Java code snippets using uk.ac.ebi.intact.model.AnnotatedObjectImpl.equals (Showing top 16 results out of 315)

origin: uk.ac.ebi.intact.core/intact-core

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;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

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;
}
origin: uk.ac.ebi.intact/intact-core

@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;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * 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() ) );
}
origin: uk.ac.ebi.intact/intact-core

/**
 * 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() ) );
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * 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() ) );
}
origin: uk.ac.ebi.intact/intact-core

@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;
}
origin: uk.ac.ebi.intact/intact-core

/**
 * 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;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * 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);
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * 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);
}
origin: uk.ac.ebi.intact/intact-core

if ( !super.equals( obj ) ) {
  return false;
origin: uk.ac.ebi.intact/intact-core

  return false;
if ( !super.equals( o ) ) {
  return false;
origin: uk.ac.ebi.intact.core/intact-core-readonly

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;
origin: uk.ac.ebi.intact.core/intact-core

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;
origin: uk.ac.ebi.intact.core/intact-core

if ( !super.equals( o ) ) {
  return false;
origin: uk.ac.ebi.intact.core/intact-core-readonly

if ( !super.equals( o ) ) {
  return false;
uk.ac.ebi.intact.modelAnnotatedObjectImplequals

Javadoc

Equality for AnnotatedObjects is currently based on equality for Xrefs, shortLabels and fullNames.

Popular methods of AnnotatedObjectImpl

  • clone
  • getAc
  • getAliases
  • getAnnotations
    This property must be overriden so it can have proper mappings
  • getXrefs
  • hashCode
    This class overwrites equals. To ensure proper functioning of HashTable, hashCode must be overwritte
  • setAliases
  • setOwner
  • setXrefs
  • getFullName
  • getShortLabel
  • prepareShortLabel
  • getShortLabel,
  • prepareShortLabel,
  • toString,
  • getOwner

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now