Class ThrowableSet.Pair

    • Constructor Detail

      • Pair

        protected Pair​(ThrowableSet caught,
                       ThrowableSet uncaught)
        Constructs a ThrowableSet.Pair.
        Parameters:
        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.
    • Method Detail

      • getCaught

        public ThrowableSet getCaught()
        Returns:
        the set of caught exceptions.
      • getUncaught

        public ThrowableSet getUncaught()
        Returns:
        the set of uncaught exceptions.
      • equals

        public boolean equals​(Object o)
        Indicates whether two Objects are ThrowableSet.Pairs representing the same set of caught and uncaught exception types.
        Overrides:
        equals in class Object
        Parameters:
        o - the Object to compare to this ThrowableSet.Pair.
        Returns:
        true if o is a ThrowableSet.Pair representing the same set of caught and uncaught types as this ThrowableSet.Pair.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object