public class BoundSet
extends java.lang.Object
| Constructor and Description |
|---|
BoundSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFalse() |
BoundSet |
deriveImpliedBounds(com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
static BoundSet |
empty() |
boolean |
equals(java.lang.Object o) |
java.util.List<Bound> |
getProperUpperBoundsFor(InferenceVariable inferenceVariable) |
int |
hashCode() |
BoundSet |
incorporate(BoundSet otherBounds,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Maintains a set of inference variable bounds, ensuring that these are consistent as new bounds are added.
|
boolean |
isEmpty() |
boolean |
isTrue()
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.
|
java.util.Optional<InstantiationSet> |
performResolution(java.util.List<InferenceVariable> variablesToResolve,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Examines the bounds on an inference variable and determines an instantiation that is compatible with those
bounds.
|
java.lang.String |
toString() |
BoundSet |
withBound(Bound bound) |
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isTrue()
public static BoundSet empty()
public boolean isEmpty()
public BoundSet incorporate(BoundSet otherBounds, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public BoundSet deriveImpliedBounds(com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public boolean containsFalse()
public java.util.Optional<InstantiationSet> performResolution(java.util.List<InferenceVariable> variablesToResolve, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public java.util.List<Bound> getProperUpperBoundsFor(InferenceVariable inferenceVariable)