Package io.deephaven.util
Class SafeCloseableList
java.lang.Object
io.deephaven.util.SafeCloseableList
- All Implemented Interfaces:
SafeCloseable
,AutoCloseable
SafeCloseable
that will close an internal list of AutoCloseables
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final Collector<AutoCloseable,
SafeCloseableList, SafeCloseableList> -
Constructor Summary
ConstructorDescriptionSafeCloseableList
(AutoCloseable... entries) SafeCloseableList
(Collection<AutoCloseable> entries) -
Method Summary
Modifier and TypeMethodDescriptionfinal <T extends AutoCloseable>
Tadd
(T closeable) final void
addAll
(@NotNull List<AutoCloseable> closeableList) final <T extends AutoCloseable>
T[]addArray
(@Nullable T[] closeables) final void
clear()
final void
close()
-
Field Details
-
COLLECTOR
-
-
Constructor Details
-
SafeCloseableList
public SafeCloseableList() -
SafeCloseableList
-
SafeCloseableList
-
-
Method Details
-
addAll
-
addArray
-
add
-
clear
public final void clear() -
close
public final void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
-