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

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

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

Feature.removeRange介绍

暂无

代码示例

代码示例来源: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-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-readonly

((Component) parent).removeParameter((ComponentParameter) child);
} else if (parent instanceof Feature && child instanceof Range) {
  ((Feature) parent).removeRange((Range) child);
} else if (child instanceof Xref) {
  parent.removeXref((Xref) child);

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

((Component) parent).removeParameter((ComponentParameter) child);
} else if (parent instanceof Feature && child instanceof Range) {
  ((Feature) parent).removeRange((Range) child);
} else if (child instanceof Xref) {
  parent.removeXref((Xref) child);

相关文章