public class CloserUtil
extends java.lang.Object
| Constructor and Description |
|---|
CloserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(java.util.List<? extends java.lang.Object> objs)
Calls close() on all elements of
objs that implement Closeable |
static void |
close(java.lang.Object obj)
Calls close() on
obj if it implements Closeable |
public static void close(java.lang.Object obj)
obj if it implements Closeableobj - The potentially closeable objectpublic static void close(java.util.List<? extends java.lang.Object> objs)
objs that implement Closeableobjs - A list of potentially closeable objects
NOTE: This method must take a List extends Object>, not List