public abstract class Bound extends Object
| Constructor and Description |
|---|
Bound() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isADependency()
Other bounds relate two inference variables, or an inference variable to a type that contains inference
variables.
|
Optional<Instantiation> |
isAnInstantiation()
Given a bound of the form α = T or T = α, we say T is an instantiation of α.
|
Optional<ProperLowerBound> |
isProperLowerBound()
Given a bound of the form T <: α, we say T is a proper lower bound of α.
|
Optional<ProperUpperBound> |
isProperUpperBound()
Given a bound of the form α <: T, we say T is a proper upper bound of α.
|
abstract boolean |
isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
A bound is satisfied by an inference variable substitution if, after applying the substitution,
the assertion is true.
|
abstract Set<InferenceVariable> |
usedInferenceVariables() |
public abstract boolean isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
public Optional<Instantiation> isAnInstantiation()
public Optional<ProperUpperBound> isProperUpperBound()
public Optional<ProperLowerBound> isProperLowerBound()
public boolean isADependency()
public abstract Set<InferenceVariable> usedInferenceVariables()
Copyright © 2007–2019. All rights reserved.