org.jetbrains.jet.lang.resolve.calls.inference
Class TypeConstraintsImpl
java.lang.Object
org.jetbrains.jet.lang.resolve.calls.inference.TypeConstraintsImpl
- All Implemented Interfaces:
- TypeConstraints
public class TypeConstraintsImpl
- extends java.lang.Object
- implements TypeConstraints
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeConstraintsImpl
public TypeConstraintsImpl(Variance varianceOfPosition)
getVarianceOfPosition
@NotNull
public Variance getVarianceOfPosition()
- Specified by:
getVarianceOfPosition in interface TypeConstraints
addBound
public void addBound(@NotNull
TypeConstraintsImpl.BoundKind boundKind,
@NotNull
JetType type)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface TypeConstraints
getLowerBounds
@NotNull
public java.util.Set<JetType> getLowerBounds()
- Specified by:
getLowerBounds in interface TypeConstraints
getUpperBounds
@NotNull
public java.util.Set<JetType> getUpperBounds()
- Specified by:
getUpperBounds in interface TypeConstraints
getExactBounds
@NotNull
public java.util.Set<JetType> getExactBounds()
- Specified by:
getExactBounds in interface TypeConstraints
getAllBounds
public java.util.Collection<com.intellij.openapi.util.Pair<TypeConstraintsImpl.BoundKind,JetType>> getAllBounds()