public static class Closeable.Set extends Object implements Closeable
Closeable.Set, Closeable.Util| Constructor and Description |
|---|
Set() |
| Modifier and Type | Method and Description |
|---|---|
<T extends AutoCloseable> |
add(T c)
Adds the supplied connection to this set.
|
void |
close()
Closes all connections in this set and empties it.
|
void |
remove(AutoCloseable c)
Removes a closeable from this set while leaving its status unchanged.
|
public void close()
close in interface AutoCloseableclose in interface Closeablepublic <T extends AutoCloseable> T add(T c)
public void remove(AutoCloseable c)
Copyright © 2017. All rights reserved.