public class SubtypeOfBound extends Bound
| Constructor and Description |
|---|
SubtypeOfBound(com.github.javaparser.resolution.types.ResolvedType s,
com.github.javaparser.resolution.types.ResolvedType t) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
com.github.javaparser.resolution.types.ResolvedType |
getS() |
com.github.javaparser.resolution.types.ResolvedType |
getT() |
int |
hashCode() |
boolean |
isADependency()
Other bounds relate two inference variables, or an inference variable to a type that contains inference
variables.
|
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 α.
|
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() |
isAnInstantiationpublic SubtypeOfBound(com.github.javaparser.resolution.types.ResolvedType s,
com.github.javaparser.resolution.types.ResolvedType t)
public com.github.javaparser.resolution.types.ResolvedType getS()
public Set<InferenceVariable> usedInferenceVariables()
usedInferenceVariables in class Boundpublic com.github.javaparser.resolution.types.ResolvedType getT()
public Optional<ProperUpperBound> isProperUpperBound()
BoundisProperUpperBound in class Boundpublic Optional<ProperLowerBound> isProperLowerBound()
BoundisProperLowerBound in class Boundpublic boolean isADependency()
BoundisADependency in class Boundpublic boolean isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
BoundisSatisfied in class BoundCopyright © 2007–2019. All rights reserved.