BoundSet

open class BoundSet(source)

Author

Federico Tomassetti

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open fun deriveImpliedBounds(typeSolver: TypeSolver): BoundSet
Link copied to clipboard
open fun empty(): BoundSet
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getProperUpperBoundsFor(inferenceVariable: InferenceVariable): List<Bound>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun incorporate(otherBounds: BoundSet, typeSolver: TypeSolver): BoundSet
Maintains a set of inference variable bounds, ensuring that these are consistent as new bounds are added.
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isTrue(): Boolean
It is sometimes convenient to refer to an empty bound set with the symbol true; this is merely out of convenience, and the two are interchangeable.
Link copied to clipboard
open fun performResolution(variablesToResolve: List<InferenceVariable>, typeSolver: TypeSolver): Optional<InstantiationSet>
Examines the bounds on an inference variable and determines an instantiation that is compatible with those bounds.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun withBound(bound: Bound): BoundSet