uk.ac.ebi.intact.model.Feature.equals()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中uk.ac.ebi.intact.model.Feature.equals()方法的一些代码示例,展示了Feature.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.equals()方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Feature
类名称:Feature
方法名:equals

Feature.equals介绍

[英]Equality for Features is currently based on owner, shortLabel, Component and any non-null Ranges. NOTE: we cannot check equality for a related Feature binding because this would be recursive!!
[中]功能的相等性目前基于所有者、短标签、组件和任何非空范围。注意:我们无法检查相关功能绑定的相等性,因为这将是递归的!!

代码示例

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

@Override
public boolean equals( Object o ) {
  return equals( o, true, true );
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

@Override
public boolean equals( Object o ) {
  return equals( o, true, true );
}

代码示例来源:origin: uk.ac.ebi.intact.util/data-conversion

public boolean equals( Object o ) {
  if ( this == o ) {
    return true;
  }
  if ( !( o instanceof InferredInteraction ) ) {
    return false;
  }
  final InferredInteraction inferredInteraction = (InferredInteraction) o;
  // we want that method to return the same result for f1-f2 tan for f2-f1
  if ( ( feature1.equals( inferredInteraction.feature1 ) && feature2.equals( inferredInteraction.feature2 ) )
     ||
     ( feature2.equals( inferredInteraction.feature1 ) && feature1.equals( inferredInteraction.feature2 ) ) ) {
    return true;
  }
  return false;
}

代码示例来源:origin: uk.ac.ebi.intact.app/data-conversion

public boolean equals( Object o ) {
  if ( this == o ) {
    return true;
  }
  if ( !( o instanceof InferredInteraction ) ) {
    return false;
  }
  final InferredInteraction inferredInteraction = (InferredInteraction) o;
  // we want that method to return the same result for f1-f2 tan for f2-f1
  if ( ( feature1.equals( inferredInteraction.feature1 ) && feature2.equals( inferredInteraction.feature2 ) )
     ||
     ( feature2.equals( inferredInteraction.feature1 ) && feature1.equals( inferredInteraction.feature2 ) ) ) {
    return true;
  }
  return false;
}

代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public boolean equals( Object o ) {
  if ( this == o ) {
    return true;
  }
  if ( !( o instanceof InferredInteraction ) ) {
    return false;
  }
  final InferredInteraction inferredInteraction = (InferredInteraction) o;
  // we want that method to return the same result for f1-f2 tan for f2-f1
  if ( ( feature1.equals( inferredInteraction.feature1 ) && feature2.equals( inferredInteraction.feature2 ) )
     ||
     ( feature2.equals( inferredInteraction.feature1 ) && feature1.equals( inferredInteraction.feature2 ) ) ) {
    return true;
  }
  return false;
}

代码示例来源:origin: uk.ac.ebi.intact.app/data-conversion

public boolean equals( Object o ) {
  if ( this == o ) {
    return true;
  }
  if ( !( o instanceof InferredInteraction ) ) {
    return false;
  }
  final InferredInteraction inferredInteraction = (InferredInteraction) o;
  // we want that method to return the same result for f1-f2 tan for f2-f1
  if ( ( feature1.equals( inferredInteraction.feature1 ) && feature2.equals( inferredInteraction.feature2 ) )
     ||
     ( feature2.equals( inferredInteraction.feature1 ) && feature1.equals( inferredInteraction.feature2 ) ) ) {
    return true;
  }
  return false;
}

代码示例来源:origin: uk.ac.ebi.intact.util/data-conversion

public boolean equals( Object o ) {
  if ( this == o ) {
    return true;
  }
  if ( !( o instanceof InferredInteraction ) ) {
    return false;
  }
  final InferredInteraction inferredInteraction = (InferredInteraction) o;
  // we want that method to return the same result for f1-f2 tan for f2-f1
  if ( ( feature1.equals( inferredInteraction.feature1 ) && feature2.equals( inferredInteraction.feature2 ) )
     ||
     ( feature2.equals( inferredInteraction.feature1 ) && feature1.equals( inferredInteraction.feature2 ) ) ) {
    return true;
  }
  return false;
}

代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public boolean equals( Object o ) {
  if ( this == o ) {
    return true;
  }
  if ( !( o instanceof InferredInteraction ) ) {
    return false;
  }
  final InferredInteraction inferredInteraction = (InferredInteraction) o;
  // we want that method to return the same result for f1-f2 tan for f2-f1
  if ( ( feature1.equals( inferredInteraction.feature1 ) && feature2.equals( inferredInteraction.feature2 ) )
     ||
     ( feature2.equals( inferredInteraction.feature1 ) && feature1.equals( inferredInteraction.feature2 ) ) ) {
    return true;
  }
  return false;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Adds a new Range object to a Feature instance. NOte that if the Range
 * is already present then it will not be added again.
 *
 * @param range A new Range instance to add.
 */
public void addRange( Range range ) {
  if ( !this.ranges.contains( range ) ) {
    if (range.getFeature() != null && !this.equals(range.getFeature())) {
      range.getFeature().removeRange(range);
    }
    this.ranges.add( range );
    range.setFeature( this );
  }
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

/**
 * Adds a new Range object to a Feature instance. NOte that if the Range
 * is already present then it will not be added again.
 *
 * @param range A new Range instance to add.
 */
public void addRange( Range range ) {
  if ( !this.ranges.contains( range ) ) {
    if (range.getFeature() != null && !this.equals(range.getFeature())) {
      range.getFeature().removeRange(range);
    }
    this.ranges.add( range );
    range.setFeature( this );
  }
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

return false;
} else if ( feature != null ? !feature.equals( range.feature, true, false ) : range.feature != null ) return false;

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

return false;
} else if ( feature != null ? !feature.equals( range.feature, true, false ) : range.feature != null ) return false;

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

if ( binds != null ? !binds.equals( feature.binds, false, false ) : feature.binds != null )
  return false;

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

if ( binds != null ? !binds.equals( feature.binds, false, false ) : feature.binds != null )
  return false;

相关文章