Java 类io.netty.util.collection.IntObjectMap 实例源码

项目:netty4.0.27Learn    文件:EpollEventLoop.java   
private void closeAll() {
    try {
        Native.epollWait(epollFd, events, 0);
    } catch (IOException ignore) {
        // ignore on close
    }
    Collection<AbstractEpollChannel> array = new ArrayList<AbstractEpollChannel>(channels.size());

    for (IntObjectMap.Entry<AbstractEpollChannel> entry: channels.entries()) {
        array.add(entry.value());
    }

    for (AbstractEpollChannel ch: array) {
        ch.unsafe().close(ch.unsafe().voidPromise());
    }
}
项目:QDrill    文件:MapWithOrdinal.java   
@Override
public Collection<V> values() {
  return Lists.newArrayList(Iterables.transform(secondary.entries(), new Function<IntObjectMap.Entry<V>, V>() {
    @Override
    public V apply(IntObjectMap.Entry<V> entry) {
      return Preconditions.checkNotNull(entry).value();
    }
  }));
}
项目:dremio-oss    文件:MapWithOrdinal.java   
@Override
public Collection<V> values() {
  return Lists.newArrayList(Iterables.transform(secondary.entries(), new Function<IntObjectMap.Entry<V>, V>() {
    @Override
    public V apply(IntObjectMap.Entry<V> entry) {
      return Preconditions.checkNotNull(entry).value();
    }
  }));
}
项目:drill    文件:MapWithOrdinal.java   
@Override
public Collection<V> values() {
  return Lists.newArrayList(Iterables.transform(secondary.entries(), new Function<IntObjectMap.Entry<V>, V>() {
    @Override
    public V apply(IntObjectMap.Entry<V> entry) {
      return Preconditions.checkNotNull(entry).value();
    }
  }));
}