public interface UncheckedCloseable extends Runnable, AutoCloseable
Modifier and Type | Method and Description |
---|---|
default void |
run()
Default implementation of
Runnable.run() . |
static UncheckedCloseable |
wrap(AutoCloseable c)
Wrap the defined AutoCloseable object.
|
close
static UncheckedCloseable wrap(AutoCloseable c)
default void run()
Runnable.run()
.Copyright © 2017. All rights reserved.