public class BoundSet extends Object
| Constructor and Description |
|---|
BoundSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFalse() |
BoundSet |
deriveImpliedBounds(TypeSolver typeSolver) |
static BoundSet |
empty() |
boolean |
equals(Object o) |
List<Bound> |
getProperUpperBoundsFor(InferenceVariable inferenceVariable) |
int |
hashCode() |
BoundSet |
incorporate(BoundSet otherBounds,
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.
|
Optional<InstantiationSet> |
performResolution(List<InferenceVariable> variablesToResolve,
TypeSolver typeSolver)
Examines the bounds on an inference variable and determines an instantiation that is compatible with those
bounds.
|
String |
toString() |
BoundSet |
withBound(Bound bound) |
public boolean isTrue()
public static BoundSet empty()
public boolean isEmpty()
public BoundSet incorporate(BoundSet otherBounds, TypeSolver typeSolver)
public BoundSet deriveImpliedBounds(TypeSolver typeSolver)
public boolean containsFalse()
public Optional<InstantiationSet> performResolution(List<InferenceVariable> variablesToResolve, TypeSolver typeSolver)
public List<Bound> getProperUpperBoundsFor(InferenceVariable inferenceVariable)
Copyright © 2007–2019. All rights reserved.