public static boolean areSamePrimitiveTypes(TypeMirror left,TypeMirror right){
  if (!isPrimitive(left) || !isPrimitive(right)) {
    return false;
  }
  return (left.getKind() == right.getKind());
}

public static boolean areSamePrimitiveTypes ( TypeMirror left , TypeMirror right ) { if ( ! isPrimitive ( left ) || ! isPrimitive ( right ) ) { return false ; } return ( left . getKind ( ) == right . getKind ( ) ) ; }
returns true iff the arguments are both the same primitive types .
