public class TypeConstraintsImpl extends java.lang.Object implements TypeConstraints
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeConstraintsImpl.BoundKind |
| Constructor and Description |
|---|
TypeConstraintsImpl(Variance varianceOfPosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBound(TypeConstraintsImpl.BoundKind boundKind,
JetType type) |
java.util.Set<JetType> |
getExactBounds() |
java.util.Set<JetType> |
getLowerBounds() |
java.util.Set<JetType> |
getUpperBounds() |
Variance |
getVarianceOfPosition() |
boolean |
isEmpty() |
public TypeConstraintsImpl(Variance varianceOfPosition)
@NotNull public Variance getVarianceOfPosition()
getVarianceOfPosition in interface TypeConstraintspublic void addBound(@NotNull TypeConstraintsImpl.BoundKind boundKind, @NotNull JetType type)
public boolean isEmpty()
isEmpty in interface TypeConstraints@NotNull public java.util.Set<JetType> getLowerBounds()
getLowerBounds in interface TypeConstraints@NotNull public java.util.Set<JetType> getUpperBounds()
getUpperBounds in interface TypeConstraints@NotNull public java.util.Set<JetType> getExactBounds()
getExactBounds in interface TypeConstraints