T - the type of items in the iterable.public interface CloseableIterable<T> extends Iterable<T>, Closeable
CloseableIterable is an Iterable which must provide an implementation
of the Closeable.close() method.| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
CloseableIterator<T> |
iterator() |
forEach, spliteratorvoid close()
close 在接口中 AutoCloseableclose 在接口中 CloseableCloseableIterator<T> iterator()
Copyright © 2021. All rights reserved.