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; }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Interaction: ").append(getAc()).append(" Label: ").append(getShortLabel()).append(" [").append(NEW_LINE); if (IntactCore.isInitialized(getComponents())) { if ( null != this.getComponents() ) { for ( Object o : this.getComponents() ) { sb.append(( ( Component ) o ).getInteractor()); } } } else { sb.append("Components not initialized"); } sb.append("] Interaction").append(NEW_LINE); return sb.toString(); } } // end Interaction
@Override public String toString() { String result = "Interaction: " + getAc() + " Label: " + getShortLabel() + " [" + NEW_LINE; if ( null != this.getComponents() ) { for ( Iterator iter = this.getComponents().iterator(); iter.hasNext(); ) { result += ( ( Component ) iter.next() ).getInteractor(); } } return result + "] Interaction" + NEW_LINE; } } // end Interaction
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Interaction: ").append(getAc()).append(" Label: ").append(getShortLabel()).append(" [").append(NEW_LINE); if (IntactCore.isInitialized(getComponents())) { if ( null != this.getComponents() ) { for ( Object o : this.getComponents() ) { sb.append(( ( Component ) o ).getInteractor()); } } } else { sb.append("Components not initialized"); } sb.append("] Interaction").append(NEW_LINE); return sb.toString(); } } // end Interaction
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; }
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; }
/******************************************/ protected void indexComplexAC(InteractionImpl complex, SolrInputDocument solrDocument) throws Exception { // stored field solrDocument.addField(ComplexFieldNames.COMPLEX_AC, complex.getAc()); // search fields solrDocument.addField ( ComplexFieldNames.COMPLEX_ID, complex.getAc ( ) ) ; // index source of complex id if ( complex.getOwner ( ) != null ) { solrDocument.addField ( ComplexFieldNames.COMPLEX_ID, complex.getOwner ( ).getShortLabel() ) ; solrDocument.addField ( ComplexFieldNames.COMPLEX_ID, complex.getOwner ( ).getShortLabel() + ":" + complex.getAc ( ) ) ; } }
if (ref.getIdentifier().equals(interaction.getAc())){ interactionsToRemove.remove(ref); break;
String intactAc = intact.getAc();