org.jetbrains.jet.lang.resolve.calls.inference
Class TypeBoundsImpl
java.lang.Object
org.jetbrains.jet.lang.resolve.calls.inference.TypeBoundsImpl
- All Implemented Interfaces:
- TypeBounds
public class TypeBoundsImpl
- extends java.lang.Object
- implements TypeBounds
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeBoundsImpl
public TypeBoundsImpl(@NotNull
TypeParameterDescriptor typeVariable,
@NotNull
Variance varianceOfPosition)
getVarianceOfPosition
@NotNull
public Variance getVarianceOfPosition()
- Specified by:
getVarianceOfPosition in interface TypeBounds
addBound
public void addBound(@NotNull
TypeBounds.BoundKind kind,
@NotNull
JetType type,
@NotNull
ConstraintPosition position)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface TypeBounds
getTypeVariable
@NotNull
public TypeParameterDescriptor getTypeVariable()
- Specified by:
getTypeVariable in interface TypeBounds
getBounds
@NotNull
public java.util.Collection<TypeBounds.Bound> getBounds()
- Specified by:
getBounds in interface TypeBounds
filter
@NotNull
public TypeBoundsImpl filter(@NotNull
kotlin.Function1<ConstraintPosition,java.lang.Boolean> condition)
getValue
@Nullable
public JetType getValue()
- Specified by:
getValue in interface TypeBounds
getValues
@NotNull
public java.util.Collection<JetType> getValues()
- Specified by:
getValues in interface TypeBounds