public final class CloseableList extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
private ArrayList<Closeable> |
closeables
.
|
private AtomicBoolean |
closed
.
|
(package private) Logger |
log
.
|
| Constructor and Description |
|---|
CloseableList() |
private final ArrayList<Closeable> closeables
private final AtomicBoolean closed
public CloseableList()
public boolean isClosed()
public void add(Closeable closeable) throws IllegalStateException, NullPointerException
closeable - the closeable to addIllegalStateException - if the list is already closedNullPointerException - if the argument is nullpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015 eXo Platform SAS. All Rights Reserved.