| Modifier and Type | Field and Description |
|---|---|
| private final Closeable | |
| private final @NonNull T | |
| private final @NonNull T |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CloseablePair(T
The first item. a, T The second item. b, Closeable Some closeable that is also closed upon alsoClose)close(), or null.Creates a pair of two items. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public final @NonNull T | |
| public final @NonNull T |
| alsoClose | back to summary |
|---|---|
| private final Closeable alsoClose | |
| first | back to summary |
|---|---|
| private final @NonNull T first | |
| second | back to summary |
|---|---|
| private final @NonNull T second | |
| CloseablePair | back to summary |
|---|---|
| public CloseablePair(T a, T b) Creates a pair of two items.
| |
| CloseablePair | back to summary |
|---|---|
| public CloseablePair(T a, T b, Closeable alsoClose) Creates a pair of two items. | |
| close | back to summary |
|---|---|
| public final void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getFirst | back to summary |
|---|---|
| public final @NonNull T getFirst() Returns the pair's first item.
| |
| getSecond | back to summary |
|---|---|
| public final @NonNull T getSecond() Returns the pair's second item.
| |