public static boolean isFloating(TypeMirror type){
switch (type.getKind()) {
case DOUBLE:
case FLOAT:
    return true;
default :
  return false;
}
}

public static boolean isFloating ( TypeMirror type ) { switch ( type . getKind ( ) ) { case DOUBLE : case FLOAT : return true ; default : return false ; } }
returns true iff the argument is a floating point type .
