@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; }
@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; }
@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; }
private static String getAnnotationValue(Experiment experiment, CvTopic topic) { for (Annotation annotation : experiment.getAnnotations()) { if (topic.equals(annotation.getCvTopic())) { return annotation.getAnnotationText(); } } return null; }
public static String getFirstAlias(InteractionImpl complex) { for (Alias alias : complex.getAliases()) { if (alias.getName() != null) { return alias.getName(); } } return null; }
public MineInteraction( ProteinImpl protein1, ProteinImpl protein2, InteractionImpl interaction ) { this.pk = new MineInteractionPk( protein1, protein2, interaction ); this.shortLabel1 = protein1.getShortLabel(); this.shortLabel2 = protein2.getShortLabel(); }
@Override public String toString() { return super.toString() + " [ CRC64: " + getCrc64() + " Sequence: " + getSequence() + "]"; } }
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; }
public static String getFirstAlias(InteractionImpl complex) { for (Alias alias : complex.getAliases()) { if (alias.getName() != null) { return alias.getName(); } } return null; }
@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; }
public MineInteraction( ProteinImpl protein1, ProteinImpl protein2, InteractionImpl interaction ) { this.pk = new MineInteractionPk( protein1, protein2, interaction ); this.shortLabel1 = protein1.getShortLabel(); this.shortLabel2 = protein2.getShortLabel(); }
@Override public String toString() { return super.toString() + " [ CRC64: " + getCrc64() + " Sequence: " + getSequence() + "]"; } }
@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; }