public static boolean isIntegral(TypeMirror type){
switch (type.getKind()) {
case BYTE:
case CHAR:
case INT:
case LONG:
case SHORT:
    return true;
default :
  return false;
}
}

public static boolean isIntegral ( TypeMirror type ) { switch ( type . getKind ( ) ) { case BYTE : case CHAR : case INT : case LONG : case SHORT : return true ; default : return false ; } }
returns true iff the argument is an integral type .
