public class SameAsBound extends Bound
| Constructor and Description |
|---|
SameAsBound(ResolvedType s,
ResolvedType t) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ResolvedType |
getS() |
ResolvedType |
getT() |
int |
hashCode() |
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 α.
|
boolean |
isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
A bound is satisfied by an inference variable substitution if, after applying the substitution,
the assertion is true.
|
String |
toString() |
Set<InferenceVariable> |
usedInferenceVariables() |
isProperLowerBound, isProperUpperBoundpublic SameAsBound(ResolvedType s, ResolvedType t)
public Set<InferenceVariable> usedInferenceVariables()
usedInferenceVariables in class Boundpublic ResolvedType getS()
public ResolvedType getT()
public boolean isADependency()
BoundisADependency in class Boundpublic Optional<Instantiation> isAnInstantiation()
BoundisAnInstantiation in class Boundpublic boolean isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
BoundisSatisfied in class BoundCopyright © 2007–2024. All rights reserved.