@Override public int hashCode() { int result = super.hashCode(); // TODO check what to do to fix recursive appel //result = 31 * result + ( component != null ? component.hashCode() : 0 ); return result; } }
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; }
CvConfidenceType type1 = conf1.getCvConfidenceType(); CvConfidenceType type2 = conf2.getCvConfidenceType(); if (type1 != null && type2 == null){ return false; if (conf1.getValue() != null && conf2.getValue() == null){ return false; else if (conf1.getValue() == null && conf2.getValue() != null){ return false; else if (conf1.getValue() != null && conf2.getValue() != null && !conf1.getValue().equalsIgnoreCase(conf2.getValue())) { return false;
public T psiToIntact( psidev.psi.mi.xml.model.Confidence psiObject ) { String value = psiObject.getValue(); T confidence = newConfidenceInstance(value); CvConfidenceType cvConfType = confidenceTyeConverter.psiToIntact( psiObject.getUnit()); confidence.setCvConfidenceType( cvConfType); return confidence; }
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 psidev.psi.mi.xml.model.Confidence intactToPsi( T intactObject ) { psidev.psi.mi.xml.model.Confidence confidence = new psidev.psi.mi.xml.model.Confidence(); confidence.setValue( intactObject.getValue()); Unit unit = confidenceTyeConverter.intactToPsi(intactObject.getCvConfidenceType()); confidence.setUnit(unit); return confidence; }
@Override public boolean equals( Object o ) { if ( this == o ) return true; if ( !( o instanceof AbstractConfidence ) ) return false; if (!super.equals(o)) { return false; } Confidence that = ( Confidence ) o; if ( interaction != null ? !interaction.equals( that.interaction, false ) : that.interaction != null ) return false; return true; }
@Override public int hashCode() { int result = super.hashCode(); // TODO check what to do to fix recursive appel //result = 31 * result + ( component != null ? component.hashCode() : 0 ); return result; } }
@Override public boolean equals( Object o ) { if ( this == o ) return true; if ( !( o instanceof AbstractConfidence ) ) return false; if (!super.equals(o)) { return false; } Confidence that = ( Confidence ) o; if ( interaction != null ? !interaction.equals( that.interaction, false ) : that.interaction != null ) return false; return true; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + ( interaction != null ? interaction.hashCode() : 0 ); return result; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + ( interaction != null ? interaction.hashCode() : 0 ); return result; } }