ThrowsBound

open class ThrowsBound : Bound(source)

The inference variable α appears in a throws clause.

A bound of the form throws α is purely informational: it directs resolution to optimize the instantiation of α so that, if possible, it is not a checked exception type.

Author

Federico Tomassetti

Constructors

Link copied to clipboard
constructor(inferenceVariable: InferenceVariable)

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Other bounds relate two inference variables, or an inference variable to a type that contains inference variables.
Link copied to clipboard
Given a bound of the form α = T or T = α, we say T is an instantiation of α.
Link copied to clipboard
Given a bound of the form T <: α, we say T is a proper lower bound of α.
Link copied to clipboard
Given a bound of the form α <: T, we say T is a proper upper bound of α.
Link copied to clipboard
open fun isSatisfied(inferenceVariableSubstitution: InferenceVariableSubstitution): Boolean
A bound is satisfied by an inference variable substitution if, after applying the substitution, the assertion is true.
Link copied to clipboard
open fun isThrowsBoundOn(inferenceVariable: InferenceVariable): Boolean
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Other methods