public class CloserUtil extends Object
Constructor and Description |
---|
CloserUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
close(List<? extends Object> objs)
Calls close() on all elements of
objs that implement Closeable |
static void |
close(Object obj)
Calls close() on
obj if it implements Closeable |
public static void close(Object obj)
obj
if it implements Closeableobj
- The potentially closeable object