public static boolean isTypeOf(TypeMirror type, Class<?> clazz) {
    return type.toString().equals(clazz.getCanonicalName());
  }
public static boolean isTypeOf(TypeMirror type, Class<?> clazz) {
    return type.toString().equals(clazz.getCanonicalName());
  }
public static boolean isTypeOf ( TypeMirror type , Class < ? > clazz ) { return type . toString ( ) . equals ( clazz . getCanonicalName ( ) ) ; }
Checks if a TypeMirror equals a class
Checks if a TypeMirror equals a class