processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java
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