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 int hashCode() { int result; long temp; result = ( pk != null ? pk.hashCode() : 0 ); result = 31 * result + ( shortLabel1 != null ? shortLabel1.hashCode() : 0 ); result = 31 * result + ( shortLabel2 != null ? shortLabel2.hashCode() : 0 ); result = 31 * result + ( taxid != null ? taxid.hashCode() : 0 ); temp = weight != +0.0d ? Double.doubleToLongBits( weight ) : 0L; result = 31 * result + ( int ) ( temp ^ ( temp >>> 32 ) ); result = 31 * result + graphId; result = 31 * result + ( experiment != null ? experiment.hashCode() : 0 ); result = 31 * result + ( detectionMethod != null ? detectionMethod.hashCode() : 0 ); result = 31 * result + ( pubmedId != null ? pubmedId.hashCode() : 0 ); return result; } }
public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } MineInteractionPk that = ( MineInteractionPk ) o; if ( protein1 != null ? !protein1.equals( that.protein1 ) : that.protein1 != null ) { return false; } if ( protein2 != null ? !protein2.equals( that.protein2 ) : that.protein2 != null ) { return false; } if ( interaction != null && that.getInteraction() != null ) { if ( interaction.getAc() == null && that.getInteraction().getAc() != null ) { if ( !interaction.getAc().equals( that.getInteraction().getAc() ) ) { return false; } } } if ( interaction != null ? !interaction.equals( that.interaction ) : that.interaction != null ) { return false; } return true; }
if ( pk != null ? !pk.equals( that.pk ) : that.pk != null ) { return false;
public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } MineInteractionPk that = ( MineInteractionPk ) o; if ( protein1 != null ? !protein1.equals( that.protein1 ) : that.protein1 != null ) { return false; } if ( protein2 != null ? !protein2.equals( that.protein2 ) : that.protein2 != null ) { return false; } if ( interaction != null && that.getInteraction() != null ) { if ( interaction.getAc() == null && that.getInteraction().getAc() != null ) { if ( !interaction.getAc().equals( that.getInteraction().getAc() ) ) { return false; } } } if ( interaction != null ? !interaction.equals( that.interaction ) : that.interaction != null ) { return false; } return true; }
if ( pk != null ? !pk.equals( that.pk ) : that.pk != null ) { return false;
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 int hashCode() { int result; long temp; result = ( pk != null ? pk.hashCode() : 0 ); result = 31 * result + ( shortLabel1 != null ? shortLabel1.hashCode() : 0 ); result = 31 * result + ( shortLabel2 != null ? shortLabel2.hashCode() : 0 ); result = 31 * result + ( taxid != null ? taxid.hashCode() : 0 ); temp = weight != +0.0d ? Double.doubleToLongBits( weight ) : 0L; result = 31 * result + ( int ) ( temp ^ ( temp >>> 32 ) ); result = 31 * result + graphId; result = 31 * result + ( experiment != null ? experiment.hashCode() : 0 ); result = 31 * result + ( detectionMethod != null ? detectionMethod.hashCode() : 0 ); result = 31 * result + ( pubmedId != null ? pubmedId.hashCode() : 0 ); return result; } }
public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } MineInteractionPk that = ( MineInteractionPk ) o; if ( protein1 != null ? !protein1.equals( that.protein1 ) : that.protein1 != null ) { return false; } if ( protein2 != null ? !protein2.equals( that.protein2 ) : that.protein2 != null ) { return false; } if ( interaction != null && that.getInteraction() != null ) { if ( interaction.getAc() == null && that.getInteraction().getAc() != null ) { if ( !interaction.getAc().equals( that.getInteraction().getAc() ) ) { return false; } } } if ( interaction != null ? !interaction.equals( that.interaction ) : that.interaction != null ) { return false; } return true; }
if ( pk != null ? !pk.equals( that.pk ) : that.pk != null ) { return false;
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 int hashCode() { int result; long temp; result = ( pk != null ? pk.hashCode() : 0 ); result = 31 * result + ( shortLabel1 != null ? shortLabel1.hashCode() : 0 ); result = 31 * result + ( shortLabel2 != null ? shortLabel2.hashCode() : 0 ); result = 31 * result + ( taxid != null ? taxid.hashCode() : 0 ); temp = weight != +0.0d ? Double.doubleToLongBits( weight ) : 0L; result = 31 * result + ( int ) ( temp ^ ( temp >>> 32 ) ); result = 31 * result + graphId; result = 31 * result + ( experiment != null ? experiment.hashCode() : 0 ); result = 31 * result + ( detectionMethod != null ? detectionMethod.hashCode() : 0 ); result = 31 * result + ( pubmedId != null ? pubmedId.hashCode() : 0 ); return result; } }