java.lang.Object
org.newsclub.net.unix.CloseablePair<T>
- Type Parameters:
T
- The type of the items.
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
AFSocketPair
A pair of two closeable items.
- Author:
- Christian Kohlschütter
-
Constructor Summary
ConstructorDescriptionCloseablePair
(T a, T b) Creates a pair of two items.CloseablePair
(T a, T b, Closeable alsoClose) Creates a pair of two items. -
Method Summary
-
Constructor Details
-
CloseablePair
-
CloseablePair
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getFirst
-
getSecond
-