java.util.Deque.retainAll()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(173)

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

Deque.retainAll介绍

暂无

代码示例

代码示例来源:origin: btraceio/btrace

@Override
public synchronized boolean retainAll(Collection<?> c) {
  return delegate.retainAll(c);
}

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

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: google/guava

@Override
public boolean retainAll(Collection<?> collection) {
 assertTrue(Thread.holdsLock(mutex));
 return delegate.retainAll(collection);
}

代码示例来源:origin: google/guava

create().remove("foo");
create().removeAll(ImmutableList.of("foo"));
create().retainAll(ImmutableList.of("foo"));
create().size();
create().toArray();

代码示例来源:origin: 58code/Argo

public boolean retainAll(Collection<?> c)   {return q.retainAll(c);}
// We use inherited addAll; forwarding addAll would be wrong

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

/**
 * @param c
 * @return
 * @see java.util.AbstractCollection#retainAll(java.util.Collection)
 */
public boolean retainAll(Collection<?> c) {
  return deque.retainAll(c);
}

代码示例来源:origin: elBukkit/MagicPlugin

@Override
public boolean retainAll(Collection<?> arg0)
{
  return blockList.retainAll(arg0);
}

代码示例来源:origin: ibinti/bugvm

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: MobiVM/robovm

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: FlexoVM/flexovm

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: com.jtransc/jtransc-rt

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: org.gridkit.3rd.btrace/ext-collections

public synchronized boolean retainAll(Collection<?> c) {
  return delegate.retainAll(c);
}

代码示例来源:origin: com.bugvm/bugvm-rt

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: com.gluonhq/robovm-rt

@Override public boolean retainAll(Collection<?> collection) {
  return q.retainAll(collection);
}

代码示例来源:origin: jbachorik/btrace2

public synchronized boolean retainAll(Collection<?> c) {
  return delegate.retainAll(c);
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

public boolean retainAll(Collection<?> c)   {return q.retainAll(c);}
// We use inherited addAll; forwarding addAll would be wrong

代码示例来源:origin: net.openhft/stage-compiler

private List<DependencyNode> topologicallySortedDependants() {
  Set<DependencyNode> visited = new HashSet<>();
  Deque<DependencyNode> sorted = new ArrayDeque<>();
  visit(visited, sorted);
  sorted.retainAll(dependantsVia);
  return new ArrayList<>(sorted);
}

代码示例来源:origin: net.openhft/stage-compiler

private <T extends DependencyNode> List<T> topologicallySorted(Collection<T> nodes) {
  Set<DependencyNode> visited = new HashSet<>();
  Deque<DependencyNode> sorted = new ArrayDeque<>();
  nodes.stream().filter(n -> n.getDependencies().isEmpty())
      .forEach(n -> n.visit(visited, sorted));
  sorted.retainAll(nodes);
  //noinspection unchecked
  return new ArrayList<>((Collection<? extends T>) sorted);
}

代码示例来源:origin: com.google.guava/guava-tests

@Override
public boolean retainAll(Collection<?> collection) {
 assertTrue(Thread.holdsLock(mutex));
 return delegate.retainAll(collection);
}

相关文章