本文整理了Java中java.util.LinkedList.retainAll()
方法的一些代码示例,展示了LinkedList.retainAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LinkedList.retainAll()
方法的具体详情如下:
包路径:java.util.LinkedList
类名称:LinkedList
方法名:retainAll
暂无
代码示例来源:origin: hankcs/HanLP
@Override
public boolean retainAll(Collection<?> c)
{
return pipeList.retainAll(c);
}
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
/**
* @see java.util.Collection#retainAll(java.util.Collection)
*/
public boolean retainAll(Collection<?> c) {
return this.elements.retainAll(c);
}
代码示例来源:origin: com.hankcs/hanlp
@Override
public boolean retainAll(Collection<?> c)
{
return pipeList.retainAll(c);
}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
/**
* @see List#retainAll(Collection)
*/
@Override
public boolean retainAll(Collection<?> c) {
return this.processors.retainAll(c);
}
代码示例来源:origin: harbby/presto-connectors
/**
* @see List#retainAll(Collection)
*/
@Override
public boolean retainAll(Collection<?> c) {
return this.processors.retainAll(c);
}
代码示例来源:origin: fr.lirmm.graphik/graal-core
@Override
public boolean retainAll(Collection<?> c) {
return this.ruleList.retainAll(c);
}
代码示例来源:origin: fr.lirmm.graphik/graal-util
@Override
public boolean retainAll(Collection<?> c) {
return list.retainAll(c);
}
代码示例来源:origin: org.jboss.gwt.circuit/circuit-core
@Override
public boolean retainAll(Collection<?> c) {
return list.retainAll(c);
}
代码示例来源:origin: com.netflix.rxjava/rxjava-core
public synchronized boolean retainAll(Collection<?> c) {
return list.retainAll(c);
}
代码示例来源:origin: elaatifi/orika
public boolean retainAll(Collection<?> c) {
return sortedList.retainAll(c);
}
代码示例来源:origin: org.eclipse.net4j/util
@Override
public boolean retainAll(Collection<?> c)
{
try
{
lock.writeLock().lock();
it = null;
return super.retainAll(c);
}
finally
{
lock.writeLock().unlock();
}
}
代码示例来源:origin: it.unibz.inf.ontop/ontop-obdalib-core
@Override
public boolean retainAll(Collection<?> c) {
boolean r = super.retainAll(c);
riseListChanged();
return r;
}
代码示例来源:origin: ontop/ontop
@Override
public boolean retainAll(Collection<?> c) {
boolean r = super.retainAll(c);
riseListChanged();
return r;
}
代码示例来源:origin: it.unibz.inf.ontop/ontop-model
@Override
public boolean retainAll(Collection<?> c) {
boolean r = super.retainAll(c);
riseListChanged();
return r;
}
代码示例来源:origin: org.openrdf.mulgara/mulgara-resolver-spi
/**
* Calculate projection orderings that allow indexed joins to function
* optimally.
*
* @param self the tuples for which to generate a projection ordering
* @param other the tuples the generated projection ordering should match
* @return the projection ordering
*/
private static List generateProjectionOrder(Tuples self, Tuples other) {
// Calculate a new column ordering for self which moves all the columns
// it has in common with the other into its prefix
LinkedList selfColumns = new LinkedList(Arrays.asList(self.getVariables()));
List otherColumns = Arrays.asList(other.getVariables());
LinkedList suffix = new LinkedList(Arrays.asList(self.getVariables()));
suffix.removeAll(otherColumns);
selfColumns.retainAll(otherColumns);
selfColumns.addAll(suffix);
return selfColumns;
}
代码示例来源:origin: cmu-phil/tetrad
/**
* This method returns the nodes of a digraph in such an order that as one
* iterates through the list, the parents of each node have already been
* encountered in the list.
*
* @return a tier ordering for the nodes in this graph.
*/
private LinkedList<SessionNode> getTierOrdering(SessionNode node) {
Session session = this.session;
Set<SessionNode> sessionNodes = session.getNodes();
LinkedList<SessionNode> found = new LinkedList<>();
Set<SessionNode> notFound = new HashSet<>();
// The getVariableNodes() method already returns a copy, so there's no
// need to make a new copy.
notFound.addAll(sessionNodes);
while (!notFound.isEmpty()) {
for (Iterator<SessionNode> it = notFound.iterator(); it.hasNext(); ) {
SessionNode sessionNode = it.next();
if (found.containsAll(sessionNode.getParents())) {
found.add(sessionNode);
it.remove();
}
}
}
found.retainAll(getDescendants(node));
return found;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
@Override
public boolean retainAll(Collection paramCollection) {
if (_directAccess) {
return super.retainAll(paramCollection);
}
if (isDelayLoad()) {
load();
}
return ProxyCollections.retainAll(this, paramCollection);
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
@Override
public boolean retainAll(Collection paramCollection) {
if (_directAccess) {
return super.retainAll(paramCollection);
}
if (isDelayLoad()) {
load();
}
return ProxyCollections.retainAll(this, paramCollection);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
@Override
public boolean retainAll(Collection paramCollection) {
if (_directAccess) {
return super.retainAll(paramCollection);
}
if (isDelayLoad()) {
load();
}
return ProxyCollections.retainAll(this, paramCollection);
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
@Override
public boolean retainAll(Collection paramCollection) {
if (_directAccess) {
return super.retainAll(paramCollection);
}
if (isDelayLoad()) {
load();
}
return ProxyCollections.retainAll(this, paramCollection);
}
内容来源于网络,如有侵权,请联系作者删除!