public class TypeSubstitution extends Object
| Constructor and Description |
|---|
TypeSubstitution() |
TypeSubstitution(TypeSubstitution typeSubstitution) |
| Modifier and Type | Method and Description |
|---|---|
TypeSubstitution |
add(TypeVariableJavaType typeVariableType,
JavaType javaType) |
TypeSubstitution |
combine(TypeSubstitution source)
Produce new substitution based on two substitutions using the same keys.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isIdentity() |
int |
size() |
JavaType |
substitutedType(JavaType javaType) |
List<JavaType> |
substitutedTypes() |
List<Map.Entry<TypeVariableJavaType,JavaType>> |
substitutionEntries() |
List<TypeVariableJavaType> |
typeVariables() |
public TypeSubstitution()
public TypeSubstitution(TypeSubstitution typeSubstitution)
@CheckForNull public JavaType substitutedType(JavaType javaType)
public List<TypeVariableJavaType> typeVariables()
public List<Map.Entry<TypeVariableJavaType,JavaType>> substitutionEntries()
public TypeSubstitution add(TypeVariableJavaType typeVariableType, JavaType javaType)
public int size()
public boolean isIdentity()
public TypeSubstitution combine(TypeSubstitution source)
source - the substitution which values will be used as keys.Copyright © 2012–2016 SonarSource. All rights reserved.