本文整理了Java中java.util.LinkedList.removeAll()
方法的一些代码示例,展示了LinkedList.removeAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LinkedList.removeAll()
方法的具体详情如下:
包路径:java.util.LinkedList
类名称:LinkedList
方法名:removeAll
暂无
代码示例来源:origin: hankcs/HanLP
@Override
public boolean removeAll(Collection<?> c)
{
return pipeList.removeAll(c);
}
代码示例来源:origin: apache/hbase
private void swapSuffix(List<? extends Segment> suffix, ImmutableSegment segment,
boolean closeSegmentsInSuffix) {
pipeline.removeAll(suffix);
if(segment != null) pipeline.addLast(segment);
// During index merge we won't be closing the segments undergoing the merge. Segment#close()
// will release the MSLAB chunks to pool. But in case of index merge there wont be any data copy
// from old MSLABs. So the new cells in new segment also refers to same chunks. In case of data
// compaction, we would have copied the cells data from old MSLAB chunks into a new chunk
// created for the result segment. So we can release the chunks associated with the compacted
// segments.
if (closeSegmentsInSuffix) {
for (Segment itemInSuffix : suffix) {
itemInSuffix.close();
}
}
}
代码示例来源:origin: apache/geode
/**
* Remove all the specified pending requests.
* <p>
* Caller must synchronize on this grant token.
*
* @param requestsToRemove the pending requests to remove guarded.By this
*/
private void removeRequests(Collection requestsToRemove) {
if (!requestsToRemove.isEmpty()) {
synchronized (this) {
this.pendingRequests.removeAll(requestsToRemove);
}
this.dlock.getStats().incPendingRequests(-requestsToRemove.size());
}
}
代码示例来源:origin: apache/incubator-pinot
segmentsToAdd.removeAll(currentCoveredSegments);
代码示例来源:origin: apache/ignite
delimQueue.removeAll(delimQueue.subList(replaceIdx, delimQueue.size()));
代码示例来源:origin: apache/geode
suspendQueue.removeAll(timeouts);
代码示例来源:origin: apache/hbase
} else {
finished.addAll(local_finished);
outstanding.removeAll(local_finished);
LOG.debug(local_finished.size() + " outstanding splits finished");
Thread.sleep(30 * 1000);
} else {
outstanding.removeAll(finished);
for (Pair<byte[], byte[]> region : finished) {
splitOut.writeChars("- " + splitAlgo.rowToStr(region.getFirst())
代码示例来源:origin: org.netbeans.api/org-openide-nodes
@Override public boolean add(T e) {
if (cancelled || Thread.interrupted()) {
throw new Stop();
}
super.add(e);
LinkedList<Object> newKeys = new LinkedList<Object>(this);
Node n = factory.getWaitNode();
if (n != null) {
newKeys.add(n);
}
newKeys.removeAll(Collections.singleton(null)); // #206958
if (newKeys.size() > minimalCount) {
setKeys(newKeys);
}
return true;
}
// #206556 Y02 - could override other mutator methods if ever needed
代码示例来源:origin: io.snappydata/gemfire-jgroups
/**
* removes all the members contained in v from this membership
*
* @param v - a vector containing all the members to be removed
*/
public void remove(Collection v) {
if(v != null) {
synchronized(members) {
members.removeAll(v);
}
}
}
代码示例来源:origin: com.sshtools/maverick-common
public synchronized void removeEntry(KeyEntry... keys) {
List<KeyEntry> toRemove = Arrays.asList(keys);
keyEntries.removeAll(toRemove);
revokedEntries.removeAll(toRemove);
entries.removeAll(toRemove);
for(Map.Entry<SshPublicKey, List<KeyEntry>> entry : entriesByPublicKey.entrySet()) {
entry.getValue().removeAll(toRemove);
}
certificateAuthorities.removeAll(toRemove);
}
代码示例来源:origin: ontop/ontop
@Override
public boolean removeAll(Collection<?> c) {
boolean r = super.removeAll(c);
riseListChanged();
return r;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
@Override
public boolean removeAll(Collection paramCollection) {
if (_directAccess) {
return super.removeAll(paramCollection);
}
return ProxyCollections.removeAll(this, paramCollection);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
@Override
public boolean removeAll(Collection paramCollection) {
if (_directAccess) {
return super.removeAll(paramCollection);
}
return ProxyCollections.removeAll(this, paramCollection);
}
代码示例来源:origin: it.unibz.inf.ontop/ontop-model
@Override
public boolean removeAll(Collection<?> c) {
boolean r = super.removeAll(c);
riseListChanged();
return r;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
@Override
public boolean removeAll(Collection paramCollection) {
if (_directAccess) {
return super.removeAll(paramCollection);
}
return ProxyCollections.removeAll(this, paramCollection);
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
@Override
public boolean removeAll(Collection paramCollection) {
if (_directAccess) {
return super.removeAll(paramCollection);
}
return ProxyCollections.removeAll(this, paramCollection);
}
代码示例来源:origin: RS485/LogisticsPipes
public void removeAll(List<E> orders) {
list.removeAll(orders);
for(E order:orders) {
elemRemove(order);
}
}
代码示例来源:origin: it.unibz.inf.ontop/ontop-obdalib-core
@Override
public boolean removeAll(Collection<?> c) {
boolean r = super.removeAll(c);
riseListChanged();
return r;
}
代码示例来源:origin: shunfei/indexr
@Override
public Set<Attribute> producedAttributes() {
LinkedList<NamedExpression> resultExpressionsCopy = new LinkedList<>(resultExpressions);
resultExpressionsCopy.removeAll(groupingExpressions);
return concatToSet(aggregateAttributes,
mapToList(resultExpressionsCopy, NamedExpression::toAttribute),
aggregateBufferAttributes);
}
代码示例来源:origin: BiglySoftware/BiglyBT
protected void deregisterHelper( UploadHelper helper ) {
try { next_optimistics_mon.enter();
helpers.remove( helper );
boolean rem = next_optimistics.removeAll( Collections.singleton( helper ) );
if( !rem ) Debug.out( "!rem" );
}
finally { next_optimistics_mon.exit(); }
}
内容来源于网络,如有侵权,请联系作者删除!