本文整理了Java中java.util.Deque.removeIf()
方法的一些代码示例,展示了Deque.removeIf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Deque.removeIf()
方法的具体详情如下:
包路径:java.util.Deque
类名称:Deque
方法名:removeIf
暂无
代码示例来源:origin: org.springframework.boot/spring-boot
private void removeUnprocessedDefaultProfiles() {
this.profiles.removeIf(
(profile) -> (profile != null && profile.isDefaultProfile()));
}
代码示例来源:origin: resteasy/Resteasy
@Override
public void close() throws IOException {
closed = true;
if (readTop != null) {
readTop.callback.succeeded();
readTop = null;
}
chunks.removeIf(c -> {
c.callback.succeeded();
return true;
});
}
代码示例来源:origin: com.aol.cyclops/cyclops-core
/**
* @param filter
* @return
* @see java.util.Collection#removeIf(java.util.function.Predicate)
*/
public boolean removeIf(Predicate<? super T> filter) {
return deque.removeIf(filter);
}
代码示例来源:origin: PerfCake/PerfCake
/**
* Performs a garbage collection based on the provided time information.
* This might be useful when controlling the time artificially.
*
* @param time
* Current artificial time.
*/
public void gc(final long time) {
window.removeIf(it -> it.time < time - length);
}
代码示例来源:origin: me.lucko/helper
@Override
public void cleanup() {
this.closeables.removeIf(ref -> {
AutoCloseable ac = ref.get();
return ac != null && ac instanceof Terminable && ((Terminable) ac).isClosed();
});
}
}
代码示例来源:origin: de.pfabulist.lindwurm/eightyfs
public void add( Channel cl ) {
closeWithMe.removeIf((el) -> !el.isOpen());
closeWithMe.add(cl);
}
代码示例来源:origin: lucko/helper
@Override
public void cleanup() {
this.closeables.removeIf(ref -> {
AutoCloseable ac = ref.get();
return ac != null && ac instanceof Terminable && ((Terminable) ac).isClosed();
});
}
}
代码示例来源:origin: lucko/helper
@Override
public void cleanup() {
this.closeables.removeIf(ac -> {
if (!(ac instanceof Terminable)) {
return false;
}
if (ac instanceof CompositeTerminable) {
((CompositeTerminable) ac).cleanup();
}
return ((Terminable) ac).isClosed();
});
}
}
代码示例来源:origin: me.lucko/helper
@Override
public void cleanup() {
this.closeables.removeIf(ac -> {
if (!(ac instanceof Terminable)) {
return false;
}
if (ac instanceof CompositeTerminable) {
((CompositeTerminable) ac).cleanup();
}
return ((Terminable) ac).isClosed();
});
}
}
代码示例来源:origin: org.opensingular/singular-form-wicket
public static void build(WicketBuildContext ctx, ViewMode viewMode) {
final Deque<IWicketBuildListener> listeners = new LinkedList<>(ctx.getListeners());
listeners.removeIf(it -> !it.isActive(ctx, null));
内容来源于网络,如有侵权,请联系作者删除!