private void validateIsPrimitiveType(String typeName) throws PIRException {
  if (!allowedPrimitiveJavaTypes.contains(typeName.toLowerCase())) {
    throw new PIRException("javaType = " + typeName + " is not one of the allowed javaTypes: "+ " byte, short, int, long, float, double, char, string");
  }
}

private void validateIsPrimitiveType ( String typeName ) throws PIRException { if ( ! allowedPrimitiveJavaTypes . contains ( typeName . toLowerCase ( ) ) ) { throw new PIRException ( "javaType = " + typeName + " is not one of the allowed javaTypes: " + " byte, short, int, long, float, double, char, string" ) ; } }
checks the given type name is a supported java primitive type , and throws a pirexception if not .
