Package io.deephaven.util
Class SafeCloseablePair<A extends AutoCloseable,B extends AutoCloseable>
java.lang.Object
io.deephaven.util.SafeCloseablePair<A,B>
- All Implemented Interfaces:
SafeCloseable
,AutoCloseable
public class SafeCloseablePair<A extends AutoCloseable,B extends AutoCloseable>
extends Object
implements SafeCloseable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static <AP extends SafeCloseable,
BP extends SafeCloseable, A extends AP, B extends BP>
SafeCloseablePair<AP,BP> downcast
(SafeCloseablePair<A, B> self) boolean
getFirst()
int
hashCode()
static <A extends SafeCloseable,
B extends SafeCloseable>
SafeCloseablePair<A,B> of
(A first, B second) toString()
-
Field Details
-
first
-
second
-
-
Constructor Details
-
SafeCloseablePair
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
-
downcast
public static <AP extends SafeCloseable,BP extends SafeCloseable, SafeCloseablePair<AP,A extends AP, B extends BP> BP> downcast(SafeCloseablePair<A, B> self) -
of
public static <A extends SafeCloseable,B extends SafeCloseable> SafeCloseablePair<A,B> of(A first, B second) -
getFirst
-
getSecond
-