org.apache.commons.collections.Buffer.clear()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(123)

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

Buffer.clear介绍

暂无

代码示例

代码示例来源:origin: Graylog2/graylog2-server

@Override
public void stop() {
  super.stop();
  buffer.clear();
}

代码示例来源:origin: com.atlassian.core/atlassian-core

public void clear() {
    buffer.clear();
  }
}

代码示例来源:origin: PerfCake/PerfCake

@Override
  public void reset() {
   fifo.clear();
  }
}

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core

/**
   * Clear panel content
   */
  public void clear() {
    synchronized (events) {
      events.clear();
    }
    logChanged = true;
  }
}

代码示例来源:origin: org.graylog2/graylog2-server

@Override
public void stop() {
  super.stop();
  buffer.clear();
}

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_components

/** {@inheritDoc} */
@Override
public void clearData() {
  synchronized (buffer) {
    buffer.clear();
    dataChanged = true;
  }
  resultsRender.clearData();
  resultsObject = null;
}

代码示例来源:origin: org.objectstyle.ashwood/ashwood

public void reset(Object newFirstVertex) {
 if (!queue.isEmpty()) queue.clear();
 if (!seen.isEmpty()) seen.clear();
 this.firstVertex = newFirstVertex;
 queue.add(firstVertex);
 seen.add(firstVertex);
}

代码示例来源:origin: org.objectstyle.ashwood/ashwood

public void reset(Collection newFirstVertices, Attribute level) {
 if (!queue.isEmpty()) queue.clear();
 if (!seen.isEmpty()) seen.clear();
 this.firstVertices = newFirstVertices;
 this.level = level;
 queue.addAll(firstVertices);
 seen.addAll(firstVertices);
 for (Iterator i = firstVertices.iterator(); i.hasNext(); ) {
  level.set(i.next(), new Integer(0));
 }
 validTree = true;
}

代码示例来源:origin: org.opencms/opencms-core

break;
case PUBLISH_HISTORY:
  m_publishHistory.clear();
  break;
case PUBLISH_QUEUE:
  m_publishQueue.clear();
  break;
case RESOURCE:

代码示例来源:origin: org.opencms/opencms-solr

break;
case PUBLISH_HISTORY:
  m_publishHistory.clear();
  break;
case PUBLISH_QUEUE:
  m_publishQueue.clear();
  break;
case RESOURCE:

代码示例来源:origin: org.exoplatform.jcr/exo.jcr.component.core

mergeTasks.clear();

相关文章