public static class ThrowableSet.Pair
extends java.lang.Object
ThrowableSet.whichCatchableAs(RefType)
,
consisting of a pair of ThrowableSets.Modifier | Constructor and Description |
---|---|
protected |
Pair(ThrowableSet caught,
ThrowableSet uncaught)
Constructs a
ThrowableSet.Pair . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether two
Object s are
ThrowableSet.Pair s representing the same set of caught
and uncaught exception types. |
ThrowableSet |
getCaught() |
ThrowableSet |
getUncaught() |
int |
hashCode() |
protected Pair(ThrowableSet caught, ThrowableSet uncaught)
ThrowableSet.Pair
.caught
- The set of exceptions to be returned when
getCaught()
is called on the constructed
ThrowableSet.Pair
.uncaught
- The set of exceptions to be returned when
getUncaught()
is called on the constructed
ThrowableSet.Pair
.public ThrowableSet getCaught()
public ThrowableSet getUncaught()
public boolean equals(java.lang.Object o)
Object
s are
ThrowableSet.Pair
s representing the same set of caught
and uncaught exception types.equals
in class java.lang.Object
o
- the Object
to compare to this
ThrowableSet.Pair
.true
if o
is a
ThrowableSet.Pair
representing the same set of
caught and uncaught types as this
ThrowableSet.Pair
.public int hashCode()
hashCode
in class java.lang.Object