public static boolean sameTypeVars ( Type t1 , Type t2 ) { return t1 instanceof TypeVariable && t2 instanceof TypeVariable && ( ( TypeVariable < ? > ) t1 ) . getName ( ) . equals ( ( ( TypeVariable < ? > ) t2 ) . getName ( ) ) && ( ( TypeVariable < ? > ) t1 ) . getGenericDeclaration ( ) . equals ( ( ( TypeVariable < ? > ) t2 ) . getGenericDeclaration ( ) ) ; }
Checks whether two types are type variables describing the same .