public class DefaultTypeHierarchy<Q> extends Object implements TypeHierarchy<Q>
TypeHierarchy
. Applies standard Java
subtyping rules to compare Java types.Constructor and Description |
---|
DefaultTypeHierarchy() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSubtype(QualifiedTypeMirror<Q> subtype,
QualifiedTypeMirror<Q> supertype)
Checks if
subtype is a subtype of supertype . |
public boolean isSubtype(QualifiedTypeMirror<Q> subtype, QualifiedTypeMirror<Q> supertype)
TypeHierarchy
subtype
is a subtype of supertype
.isSubtype
in interface TypeHierarchy<Q>