Tabnine Logo
uk.ac.ebi.intact.model
Code IndexAdd Tabnine to your IDE (free)

How to use uk.ac.ebi.intact.model

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

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

  @Override
  public int hashCode() {
    int result = super.hashCode();
//        result = 29 * result + bioSource.hashCode();
    result = 29 * result + ( bioSource != null ? bioSource.hashCode() : 0 );
    result = 29 * result + ( publication != null ? publication.hashCode() : 0 );
    result = 29 * result + ( cvIdentification != null ? cvIdentification.hashCode() : 0 );
    result = 29 * result + ( cvInteraction != null ? cvInteraction.hashCode() : 0 );
    return result;
  }

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

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 29 * result + ( bioSource != null ? bioSource.hashCode() : 0 );
  result = 29 * result + ( interactorType != null ? interactorType.hashCode() : 0 );
  // next line is commented because is making hibernate (cglib) fail from time to time
  //result = 29 * result + ( activeInstances != null ? activeInstances.size() : 0 );
  return result;
}
origin: uk.ac.ebi.intact/intact-core

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 29 * result + ( bioSource != null ? bioSource.hashCode() : 0 );
  result = 29 * result + ( interactorType != null ? interactorType.hashCode() : 0 );
  // next line is commented because is making hibernate (cglib) fail from time to time
  //result = 29 * result + ( activeInstances != null ? activeInstances.size() : 0 );
  return result;
}
origin: uk.ac.ebi.intact.bridges.coredep/intact-cdb

private static String getAnnotationValue(Experiment experiment, CvTopic topic) {
  for (Annotation annotation : experiment.getAnnotations()) {
    if (topic.equals(annotation.getCvTopic())) {
      return annotation.getAnnotationText();
    }
  }
  return null;
}
origin: uk.ac.ebi.intact.core/intact-core

public static String getFirstAlias(InteractionImpl complex) {
  for (Alias alias : complex.getAliases()) {
    if (alias.getName() != null) {
      return alias.getName();
    }
  }
  return null;
}
origin: uk.ac.ebi.intact.core/intact-core

public MineInteraction( ProteinImpl protein1, ProteinImpl protein2, InteractionImpl interaction ) {
  this.pk = new MineInteractionPk( protein1, protein2, interaction );
  this.shortLabel1 = protein1.getShortLabel();
  this.shortLabel2 = protein2.getShortLabel();
}
origin: uk.ac.ebi.intact/intact-core

  @Override
  public String toString() {
    return super.toString() + " [ CRC64: " + getCrc64() + " Sequence: " + getSequence() + "]";
  }
}
origin: uk.ac.ebi.intact/intact-core

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 29 * result + bioSource.hashCode();
  result = 29 * result + ( publication != null ? publication.hashCode() : 0 );
  return result;
}
origin: uk.ac.ebi.intact.core/intact-core

  public int hashCode() {
    int result;
    result = ( protein1 != null ? protein1.hashCode() : 0 );
    result = 31 * result + ( protein2 != null ? protein2.hashCode() : 0 );
    result = 31 * result + ( interaction != null ? interaction.hashCode() : 0 );
    return result;
  }
}
origin: uk.ac.ebi.intact.core/intact-core

  @Override
  public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + ( interaction != null ? interaction.hashCode() : 0 );
    return result;
  }
}
origin: uk.ac.ebi.intact.core/intact-core

@Override
public int hashCode() {
  final int prime = 31;
  int result = super.hashCode();
  result = prime * result
      + ((interaction == null) ? 0 : interaction.hashCode());
  return result;
}
origin: uk.ac.ebi.intact/intact-core

  @Override
  public String toString() {
    return super.toString() + "; owner=" + owner.getAc();
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public boolean equals( Object o, boolean checkComponent ) {
   if ( this == o ) return true;
  if ( !( o instanceof AbstractConfidence ) ) return false;
  if (!super.equals(o)) {
    return false;
  }
  ComponentConfidence that = (ComponentConfidence) o;
  if (checkComponent){
    if ( component != null ? !component.equals( that.component, false ) : that.component != null ) return false;
  }
  return true;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static String getFirstAlias(InteractionImpl complex) {
  for (Alias alias : complex.getAliases()) {
    if (alias.getName() != null) {
      return alias.getName();
    }
  }
  return null;
}
origin: uk.ac.ebi.intact.core/intact-core

  @Override
  public int hashCode() {
    int result = super.hashCode();
//        result = 29 * result + bioSource.hashCode();
    result = 29 * result + ( bioSource != null ? bioSource.hashCode() : 0 );
    result = 29 * result + ( publication != null ? publication.hashCode() : 0 );
    result = 29 * result + ( cvIdentification != null ? cvIdentification.hashCode() : 0 );
    result = 29 * result + ( cvInteraction != null ? cvInteraction.hashCode() : 0 );
    return result;
  }

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

public MineInteraction( ProteinImpl protein1, ProteinImpl protein2, InteractionImpl interaction ) {
  this.pk = new MineInteractionPk( protein1, protein2, interaction );
  this.shortLabel1 = protein1.getShortLabel();
  this.shortLabel2 = protein2.getShortLabel();
}
origin: uk.ac.ebi.intact.core/intact-core

  @Override
  public String toString() {
    return super.toString() + " [ CRC64: " + getCrc64() + " Sequence: " + getSequence() + "]";
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 29 * result + ( bioSource != null ? bioSource.hashCode() : 0 );
  result = 29 * result + ( interactorType != null ? interactorType.hashCode() : 0 );
  // next line is commented because is making hibernate (cglib) fail from time to time
  //result = 29 * result + ( activeInstances != null ? activeInstances.size() : 0 );
  return result;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

  @Override
  public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + ( interaction != null ? interaction.hashCode() : 0 );
    return result;
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

@Override
public int hashCode() {
  final int prime = 31;
  int result = super.hashCode();
  result = prime * result
      + ((interaction == null) ? 0 : interaction.hashCode());
  return result;
}
uk.ac.ebi.intact.model

Most used classes

  • CvDatabase
    Represents an external database and contains all the information necessary to retrieve an object fro
  • Annotation
    Funtional description of an object.
  • Xref
    Represents a crossreference to another database.
  • CvTopic
    Controlled vocabulary for description topics.
  • CvXrefQualifier
    Terms in this controlled vocabulary class qualify the association between AnnotatedObject and Xref.
  • BioSource,
  • CvAliasType,
  • Experiment,
  • Alias,
  • Interaction,
  • Interactor,
  • CvObject,
  • AnnotatedObject,
  • Feature,
  • InteractorXref,
  • Range,
  • Institution,
  • Protein,
  • Polymer
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